prevent <player> went off with a bang

This commit is contained in:
rycbar0
2023-06-19 12:44:32 +02:00
parent 2b259d6dee
commit a32ac59ec1

View File

@@ -487,7 +487,8 @@ public final class ElytraBehavior extends Behavior implements IElytraBehavior, H
final NBTTagCompound subCompound = itemStack.getSubCompound("Fireworks");
return itemStack.getItem() == Items.FIREWORKS
&& subCompound != null
&& subCompound.hasKey("Flight");
&& subCompound.hasKey("Flight")
&& !subCompound.hasKey("Explosions");
}
private boolean isFireworkActive() {