mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Check if firework item explosions tag is null (#626)
This commit is contained in:
parent
a49f6fe0e3
commit
fe6257bb38
1 changed files with 34 additions and 32 deletions
|
@ -39,6 +39,7 @@ public class FireworkTranslator extends NbtItemStackTranslator {
|
|||
CompoundTag fireworks = itemTag.get("Fireworks");
|
||||
|
||||
ListTag explosions = fireworks.get("Explosions");
|
||||
if (explosions != null) {
|
||||
for (Tag effect : explosions.getValue()) {
|
||||
CompoundTag effectData = (CompoundTag) effect;
|
||||
|
||||
|
@ -84,6 +85,7 @@ public class FireworkTranslator extends NbtItemStackTranslator {
|
|||
explosions.add(newEffectData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void translateToJava(CompoundTag itemTag, ItemEntry itemEntry) {
|
||||
|
|
Loading…
Reference in a new issue