forked from ChomeNS/chomens-bot-java
turn classic firework -> firework_rocket
This commit is contained in:
parent
68a35c372a
commit
a5f2b701c5
1 changed files with 1 additions and 0 deletions
|
@ -173,6 +173,7 @@ public class NBSConverter implements Converter {
|
|||
final Path path = Path.of(customInstrument.file);
|
||||
String name = path.getFileName().toString();
|
||||
if (name.endsWith(".ogg")) name = name.substring(0, name.length() - ".ogg".length()); // bad but OK
|
||||
if (name.contains("entity.firework.")) name = name.replace("entity.firework.", "entity.firework_rocket.");
|
||||
|
||||
instrument = Instrument.of(name);
|
||||
key += customInstrument.pitch;
|
||||
|
|
Loading…
Reference in a new issue