From d286767f7ac79995a4ce90785e091e4b0c8d6320 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Mon, 12 Jun 2023 19:03:03 +0700 Subject: [PATCH] update the song parser --- src/main/java/land/chipmunk/chipmunkmod/song/Instrument.java | 2 +- src/main/java/land/chipmunk/chipmunkmod/song/NBSConverter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/land/chipmunk/chipmunkmod/song/Instrument.java b/src/main/java/land/chipmunk/chipmunkmod/song/Instrument.java index 91462cb..8d8850e 100644 --- a/src/main/java/land/chipmunk/chipmunkmod/song/Instrument.java +++ b/src/main/java/land/chipmunk/chipmunkmod/song/Instrument.java @@ -27,7 +27,7 @@ public class Instrument { this.id = id; this.name = name; this.offset = offset; - this.sound = name; + this.sound = sound; } private Instrument (int id, String name, int offset) { diff --git a/src/main/java/land/chipmunk/chipmunkmod/song/NBSConverter.java b/src/main/java/land/chipmunk/chipmunkmod/song/NBSConverter.java index c1bf1f6..a45d174 100644 --- a/src/main/java/land/chipmunk/chipmunkmod/song/NBSConverter.java +++ b/src/main/java/land/chipmunk/chipmunkmod/song/NBSConverter.java @@ -164,7 +164,7 @@ public class NBSConverter { if (index >= customInstruments.size()) continue; NBSCustomInstrument customInstrument = customInstruments.get(index); instrument = Instrument.of(customInstrument.name); - // key += customInstrument.pitch; + key += customInstrument.pitch; } if (key < 33 || key > 57) {