mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
FireworkEntity: don't process if item is null (#1160)
This commit is contained in:
parent
0e91475c62
commit
78e8792a2d
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,9 @@ public class FireworkEntity extends Entity {
|
||||||
public void updateBedrockMetadata(EntityMetadata entityMetadata, GeyserSession session) {
|
public void updateBedrockMetadata(EntityMetadata entityMetadata, GeyserSession session) {
|
||||||
if (entityMetadata.getId() == 7) {
|
if (entityMetadata.getId() == 7) {
|
||||||
ItemStack item = (ItemStack) entityMetadata.getValue();
|
ItemStack item = (ItemStack) entityMetadata.getValue();
|
||||||
|
if (item == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
CompoundTag tag = item.getNbt();
|
CompoundTag tag = item.getNbt();
|
||||||
|
|
||||||
if (tag == null) {
|
if (tag == null) {
|
||||||
|
|
Loading…
Reference in a new issue