Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 16:12:46 +01:00
FireworkEntity: don't process if item is null (#1160)
Dieser Commit ist enthalten in:
Ursprung
0e91475c62
Commit
78e8792a2d
@ -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) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren