forked from GeyserMC/Geyser
BannerTranslator: fix NPE when no block entity data (#1543)
This commit is contained in:
parent
981ac3bf11
commit
47f25f1205
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ public class BannerTranslator extends ItemTranslator {
|
|||
ItemData itemData = super.translateToBedrock(itemStack, itemEntry);
|
||||
|
||||
CompoundTag blockEntityTag = itemStack.getNbt().get("BlockEntityTag");
|
||||
if (blockEntityTag.contains("Patterns")) {
|
||||
if (blockEntityTag != null && blockEntityTag.contains("Patterns")) {
|
||||
ListTag patterns = blockEntityTag.get("Patterns");
|
||||
|
||||
NbtMapBuilder builder = itemData.getTag().toBuilder();
|
||||
|
|
Loading…
Reference in a new issue