From 78e8792a2d05e5cf4d310342e443ee550a9c7e67 Mon Sep 17 00:00:00 2001 From: Camotoy <20743703+DoctorMacc@users.noreply.github.com> Date: Sun, 16 Aug 2020 15:25:35 -0400 Subject: [PATCH] FireworkEntity: don't process if item is null (#1160) --- .../java/org/geysermc/connector/entity/FireworkEntity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/connector/src/main/java/org/geysermc/connector/entity/FireworkEntity.java b/connector/src/main/java/org/geysermc/connector/entity/FireworkEntity.java index 3e1d05f44..5e47cb0f2 100644 --- a/connector/src/main/java/org/geysermc/connector/entity/FireworkEntity.java +++ b/connector/src/main/java/org/geysermc/connector/entity/FireworkEntity.java @@ -55,6 +55,9 @@ public class FireworkEntity extends Entity { public void updateBedrockMetadata(EntityMetadata entityMetadata, GeyserSession session) { if (entityMetadata.getId() == 7) { ItemStack item = (ItemStack) entityMetadata.getValue(); + if (item == null) { + return; + } CompoundTag tag = item.getNbt(); if (tag == null) {