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();