diff --git a/src/main/java/com/atsuishio/superbwarfare/item/ContainerBlockItem.java b/src/main/java/com/atsuishio/superbwarfare/item/ContainerBlockItem.java index c4164d447..1df1e7dd9 100644 --- a/src/main/java/com/atsuishio/superbwarfare/item/ContainerBlockItem.java +++ b/src/main/java/com/atsuishio/superbwarfare/item/ContainerBlockItem.java @@ -69,7 +69,7 @@ public class ContainerBlockItem extends BlockItem implements GeoItem { Player player = pContext.getPlayer(); if (player != null) { var tag = BlockItem.getBlockEntityData(stack); - if (tag != null && tag.get("Entity") != null) { + if (tag != null && tag.get("Entity") != null && pContext.canPlace()) { player.getInventory().removeItem(stack); } }