Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-27 16:40:14 +01:00
BannerTranslator: fix NPE when no block entity data (#1543)
Dieser Commit ist enthalten in:
Ursprung
981ac3bf11
Commit
47f25f1205
@ -130,7 +130,7 @@ public class BannerTranslator extends ItemTranslator {
|
|||||||
ItemData itemData = super.translateToBedrock(itemStack, itemEntry);
|
ItemData itemData = super.translateToBedrock(itemStack, itemEntry);
|
||||||
|
|
||||||
CompoundTag blockEntityTag = itemStack.getNbt().get("BlockEntityTag");
|
CompoundTag blockEntityTag = itemStack.getNbt().get("BlockEntityTag");
|
||||||
if (blockEntityTag.contains("Patterns")) {
|
if (blockEntityTag != null && blockEntityTag.contains("Patterns")) {
|
||||||
ListTag patterns = blockEntityTag.get("Patterns");
|
ListTag patterns = blockEntityTag.get("Patterns");
|
||||||
|
|
||||||
NbtMapBuilder builder = itemData.getTag().toBuilder();
|
NbtMapBuilder builder = itemData.getTag().toBuilder();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren