forked from ChomeNS/chomens-bot-java
CHIP MC MOMENT BRUHHHHHHHH
or is it harry zhou moment? yeah this took a few times of debugging and to fix it just change `this.sound = name` to `this.sound = sound`
This commit is contained in:
parent
f76c12d81f
commit
a03605ddac
2 changed files with 4 additions and 2 deletions
|
@ -28,7 +28,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) {
|
||||||
|
|
|
@ -163,10 +163,12 @@ public class NBSConverter {
|
||||||
instrument = instrumentIndex[note.instrument];
|
instrument = instrumentIndex[note.instrument];
|
||||||
} else {
|
} else {
|
||||||
int index = note.instrument - instrumentIndex.length;
|
int index = note.instrument - instrumentIndex.length;
|
||||||
|
|
||||||
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 < 30 || key > 60) continue;
|
// if (key < 30 || key > 60) continue;
|
||||||
|
|
Loading…
Reference in a new issue