Skip to content

Commit 569b9d4

Browse files
committed
fix _-1 harps note working
1 parent 4508dfd commit 569b9d4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/macros/macros.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function macros() {
22
#macro gm_runtime_version "2022.2.0.487"
3-
#macro version_date "2022.05.23"
3+
#macro version_date "2022.05.24"
44
#macro version "3.10.0-beta.3"
55
#macro is_prerelease 1 // remember to change to 0 in the release!
66
#macro nbs_version 5

scripts/schematic_export/schematic_export.gml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ function schematic_export() {
945945
TAG_Int("state", insnum * 26 + 19)
946946
TAG_End()
947947
}
948-
var soundname, soundpitch;
948+
var soundname, soundpitch, soundnote;
949949
for (a = 0; a < noteblocks; a += 1) {
950950
if (o.command_block) {
951951
TAG_Compound("nbt")
@@ -965,7 +965,7 @@ function schematic_export() {
965965
buffer_write_int_be(wid - 1 - noteblocky[a])
966966
buffer_write_int_be(noteblockz[a])
967967
buffer_write_int_be(noteblockx[a])
968-
TAG_Int("state", 3 + insnum + noteblockins[a] * 25 + noteblocknote[a])
968+
TAG_Int("state", 3 + insnum + (noteblockins[a] * 25 + noteblocknote[a]) * !o.command_block)
969969
TAG_End()
970970
}
971971
if (chest) {

0 commit comments

Comments
 (0)