Fix container owner not captured on click (#652)

This commit is contained in:
IzzelAliz 2022-07-17 22:31:23 +08:00
parent da56932cf0
commit 3a1700a608
No known key found for this signature in database
GPG Key ID: EE50E123A11D8338

View File

@ -1288,7 +1288,9 @@ public abstract class ServerPlayNetHandlerMixin implements ServerPlayNetHandlerB
return;
}
ArclightCaptures.captureContainerOwner(this.player);
InventoryView inventory = ((ContainerBridge) this.player.containerMenu).bridge$getBukkitView();
ArclightCaptures.resetContainerOwner();
InventoryType.SlotType type = inventory.getSlotType(packet.getSlotNum());
InventoryClickEvent event;