From 5d6f63c9dec3957fa95ba2bb8c462d0040afd341 Mon Sep 17 00:00:00 2001 From: 17146 <1714673995@qq.com> Date: Fri, 7 Feb 2025 00:11:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E9=9B=86=E8=A3=85?= =?UTF-8?q?=E7=AE=B1=E6=94=BE=E7=BD=AE=E5=A4=B1=E8=B4=A5=E6=97=B6=E6=B6=88?= =?UTF-8?q?=E8=80=97=E7=89=A9=E5=93=81=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/atsuishio/superbwarfare/item/ContainerBlockItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }