diff --git a/Common/src/main/java/at/petrak/hexcasting/common/items/ItemSlate.java b/Common/src/main/java/at/petrak/hexcasting/common/items/ItemSlate.java index e1baecd0..01c43434 100644 --- a/Common/src/main/java/at/petrak/hexcasting/common/items/ItemSlate.java +++ b/Common/src/main/java/at/petrak/hexcasting/common/items/ItemSlate.java @@ -52,19 +52,15 @@ public class ItemSlate extends BlockItem implements DataHolderItem { // TODO: what the hell does this do and how to do it on forge @SoftImplement("forge") public boolean onEntityItemUpdate(ItemStack stack, ItemEntity entity) { - var tag = stack.getTagElement("BlockEntityTag"); - if (tag != null && tag.isEmpty()) { + if (!hasPattern(stack)) stack.removeTagKey("BlockEntityTag"); - } return false; } @Override public void inventoryTick(ItemStack pStack, Level pLevel, Entity pEntity, int pSlotId, boolean pIsSelected) { - var tag = pStack.getTagElement("BlockEntityTag"); - if (tag != null && tag.isEmpty()) { + if (!hasPattern(pStack)) pStack.removeTagKey("BlockEntityTag"); - } } @Override