mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-26 18:29:21 +00:00
FireworkEntity: don't process if item is null (#1160)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user