Skip to content

Commit 0541df9

Browse files
author
ShinkoNet
committed
Bugfix bugfix
i fixed the bug that was made from the bugfix
1 parent a52428a commit 0541df9

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

scripts/branch_export/branch_export.gml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -490,16 +490,18 @@ for (a = rangestart; a <= rangeend; a ++) {
490490
entries = rangeend - rangestart
491491
for (c = 0; c < sch_exp_chords; c ++) { // Corrections hack
492492
for (a = 0; a <= entries; a ++) {
493-
if (schematic_block_get(mySchematic, noteblockz[c, a], noteblockx[c, a], 1) = 25) {
494-
schematic_block_set(mySchematic, noteblockz[c, a], noteblockx[c, a], 2, 0)
495-
}
496-
if (schematic_block_get(mySchematic, noteblockz[c, a], noteblockx[c, a], 1) = sch_exp_circuit_block) {
497-
noteblockx[c, a] -= 1
498-
}
499-
if (schematic_block_get(mySchematic, noteblockz[c, a], noteblockx[c, a] - 1, 1) = sch_exp_circuit_block) || (schematic_block_get(mySchematic, noteblockz[c, a], noteblockx[c, a] - 1, 1) = 0) {
500-
if (schematic_block_get(mySchematic, noteblockz[c, a], noteblockx[c, a] - 1, 0) != sch_exp_circuit_block) {
501-
schematic_block_set(mySchematic, noteblockz[c, a], noteblockx[c, a] - 1, 1, 0)
502-
schematic_block_set(mySchematic, noteblockz[c, a], noteblockx[c, a] - 1, 0, 0)
493+
if nblockkey[z, a] != 0 {
494+
if (schematic_block_get(mySchematic, noteblockz[c, a], noteblockx[c, a], 1) = 25) {
495+
schematic_block_set(mySchematic, noteblockz[c, a], noteblockx[c, a], 2, 0)
496+
}
497+
if (schematic_block_get(mySchematic, noteblockz[c, a], noteblockx[c, a], 1) = sch_exp_circuit_block) {
498+
noteblockx[c, a] -= 1
499+
}
500+
if (schematic_block_get(mySchematic, noteblockz[c, a], noteblockx[c, a] - 1, 1) = sch_exp_circuit_block) || (schematic_block_get(mySchematic, noteblockz[c, a], noteblockx[c, a] - 1, 1) = 0) {
501+
if (schematic_block_get(mySchematic, noteblockz[c, a], noteblockx[c, a] - 1, 0) != sch_exp_circuit_block) {
502+
schematic_block_set(mySchematic, noteblockz[c, a], noteblockx[c, a] - 1, 1, 0)
503+
schematic_block_set(mySchematic, noteblockz[c, a], noteblockx[c, a] - 1, 0, 0)
504+
}
503505
}
504506
}
505507
}

0 commit comments

Comments
 (0)