Merge pull request #4003 from rycbar0/elytra

prevent <player> went off with a bang
This commit is contained in:
Brady Hahn 2023-06-19 12:12:15 -05:00 committed by GitHub
commit 579e6d6e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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() {