forked from chipmunkmc/chipmunkbot
fix nbs a bit
This commit is contained in:
parent
3df79981fd
commit
2ffbee67ba
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ public class Instrument {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.offset = offset;
|
this.offset = offset;
|
||||||
this.sound = name;
|
this.sound = sound;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Instrument (int id, String name, int offset) {
|
private Instrument (int id, String name, int offset) {
|
||||||
|
|
|
@ -164,7 +164,7 @@ public class NBSConverter {
|
||||||
if (index >= customInstruments.size()) continue;
|
if (index >= customInstruments.size()) continue;
|
||||||
NBSCustomInstrument customInstrument = customInstruments.get(index);
|
NBSCustomInstrument customInstrument = customInstruments.get(index);
|
||||||
instrument = Instrument.of(customInstrument.name);
|
instrument = Instrument.of(customInstrument.name);
|
||||||
// key += customInstrument.pitch;
|
key += customInstrument.pitch;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (key < 33 || key > 57) {
|
if (key < 33 || key > 57) {
|
||||||
|
|
Loading…
Reference in a new issue