From 8ccac8623d504d8fc27b9da142e47b848d29b357 Mon Sep 17 00:00:00 2001 From: Gugle Date: Sun, 12 May 2024 20:35:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=81=87=E4=BA=BA=E8=83=8C?= =?UTF-8?q?=E5=8C=85=E5=AD=98=E5=9C=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/dev/dubhe/gugle/carpet/mixin/PlayerMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/dubhe/gugle/carpet/mixin/PlayerMixin.java b/src/main/java/dev/dubhe/gugle/carpet/mixin/PlayerMixin.java index 555dfcc..0b9f8f3 100644 --- a/src/main/java/dev/dubhe/gugle/carpet/mixin/PlayerMixin.java +++ b/src/main/java/dev/dubhe/gugle/carpet/mixin/PlayerMixin.java @@ -29,7 +29,7 @@ abstract class PlayerMixin { @Inject(method = "tick", at = @At("RETURN")) private void tick(CallbackInfo ci) { - if (GcaSetting.openFakePlayerInventory && gca$self instanceof ServerPlayer serverPlayer && + if (gca$self instanceof ServerPlayer serverPlayer && serverPlayer instanceof EntityPlayerMPFake && serverPlayer.isAlive()) { Map.Entry entry = GcaExtension.fakePlayerInventoryContainerMap.get(gca$self); entry.getKey().tick();