Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-27 08:30:12 +01:00
Check if firework item explosions tag is null (#626)
Dieser Commit ist enthalten in:
Ursprung
a49f6fe0e3
Commit
fe6257bb38
@ -39,6 +39,7 @@ public class FireworkTranslator extends NbtItemStackTranslator {
|
|||||||
CompoundTag fireworks = itemTag.get("Fireworks");
|
CompoundTag fireworks = itemTag.get("Fireworks");
|
||||||
|
|
||||||
ListTag explosions = fireworks.get("Explosions");
|
ListTag explosions = fireworks.get("Explosions");
|
||||||
|
if (explosions != null) {
|
||||||
for (Tag effect : explosions.getValue()) {
|
for (Tag effect : explosions.getValue()) {
|
||||||
CompoundTag effectData = (CompoundTag) effect;
|
CompoundTag effectData = (CompoundTag) effect;
|
||||||
|
|
||||||
@ -84,6 +85,7 @@ public class FireworkTranslator extends NbtItemStackTranslator {
|
|||||||
explosions.add(newEffectData);
|
explosions.add(newEffectData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void translateToJava(CompoundTag itemTag, ItemEntry itemEntry) {
|
public void translateToJava(CompoundTag itemTag, ItemEntry itemEntry) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren