Skip to content

Commit f24296a

Browse files
committed
Fixed parsing song with multiple custom instruments
1 parent 195a5bf commit f24296a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.xxmicloxx</groupId>
77
<artifactId>NoteBlockAPI</artifactId>
8-
<version>1.2.4</version>
8+
<version>1.2.4.1</version>
99
<name>NoteBlockAPI</name>
1010

1111
<properties>

src/main/java/com/xxmicloxx/NoteBlockAPI/utils/NBSDecoder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ private static Song parse(InputStream inputStream, File songFile) {
120120
for (int index = 0; index < customAmnt; index++) {
121121
customInstrumentsArray[index] = new CustomInstrument((byte) index,
122122
readString(dataInputStream), readString(dataInputStream));
123+
dataInputStream.readByte();//pitch
124+
dataInputStream.readByte();//key
123125
}
124126

125127
if (InstrumentUtils.isCustomInstrument((byte) (biggestInstrumentIndex - customAmnt))) {

0 commit comments

Comments
 (0)