Skip to content

Commit f6d78c9

Browse files
author
ShinkoNet
committed
Fixed branch export desync
I THINK THIS IS WORKING RIGHT NOW
1 parent bfc94a8 commit f6d78c9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scripts/branch_export/branch_export.gml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,17 @@ for (a = 0; a < sch_exp_polyphony; a ++) {
7070
}
7171
}
7272
if accepted = 1 {
73-
nblocknote[a, ticks] = o.song_key[sch_exp_range_start + b, sch_exp_layer[a]] - 33
73+
nblocknote[a, ticks] = o.song_key[sch_exp_range_start + b, sch_exp_layer[a]]
7474
nblockins[a, ticks] = o.song_ins[sch_exp_range_start + b, sch_exp_layer[a]] - 100002
7575
nblockvel[a, ticks] = o.song_vel[sch_exp_range_start + b, sch_exp_layer[a]]
76+
nblockkey[a, ticks] = nblocknote[a, ticks] - 33
7677
sch_exp_totalnoteblocks ++
7778
accepted = 0
7879
} else {
7980
nblocknote[a, ticks] = 0
8081
nblockins[a, ticks] = 0
8182
nblockvel[a, ticks] = 0
83+
nblockkey[a, ticks] = 0
8284
}
8385
show_debug_message("WROTE nblocknote" + string(a) + "," + string(ticks) + " val " + string(nblocknote[a, ticks]))
8486
noteblockzvel[a, ticks] = 0

scripts/schematic_save/schematic_save.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ nbt_tag_compound(file, "Schematic") {
3232
nbt_tag_int(file, "x", noteblockx[a, b])
3333
nbt_tag_int(file, "y", noteblocky[a, b])
3434
nbt_tag_int(file, "z", noteblockz[a, b])
35-
nbt_tag_byte(file, "note", nblocknote[a, b])
35+
nbt_tag_byte(file, "note", nblockkey[a, b])
3636
nbt_tag_end(file)
3737
d++
3838
}

0 commit comments

Comments
 (0)