Skip to content

Commit

Permalink
修复假人背包存在的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu-ZT committed May 12, 2024
1 parent 93fed25 commit 8ccac86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<FakePlayerInventoryContainer, FakePlayerEnderChestContainer> entry = GcaExtension.fakePlayerInventoryContainerMap.get(gca$self);
entry.getKey().tick();
Expand Down

0 comments on commit 8ccac86

Please sign in to comment.