forked from ChomeNS/chomens-bot-java
ohio but ok
This commit is contained in:
parent
f63658fea1
commit
e5f3c74852
1 changed files with 5 additions and 1 deletions
|
@ -167,7 +167,11 @@ public class NBSConverter {
|
|||
if (index >= customInstruments.size()) continue;
|
||||
|
||||
NBSCustomInstrument customInstrument = customInstruments.get(index);
|
||||
instrument = Instrument.of(customInstrument.name);
|
||||
|
||||
String name = customInstrument.file;
|
||||
if (name.endsWith(".ogg")) name = name.substring(0, name.length() - ".ogg".length()); // bad but OK
|
||||
|
||||
instrument = Instrument.of(name);
|
||||
key += customInstrument.pitch;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue