turn classic firework -> firework_rocket

This commit is contained in:
Chayapak 2023-09-03 07:42:47 +07:00
parent 68a35c372a
commit a5f2b701c5

View file

@ -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;