Capture owner for inv close
This commit is contained in:
parent
8f90a71b29
commit
d07354e23d
|
@ -724,7 +724,9 @@ public abstract class ServerPlayerMixin extends PlayerMixin implements ServerPla
|
|||
@Inject(method = "doCloseContainer", at = @At("HEAD"))
|
||||
private void arclight$invClose(CallbackInfo ci) {
|
||||
if (this.containerMenu != this.inventoryMenu) {
|
||||
ArclightCaptures.captureContainerOwner((ServerPlayer) (Object) this);
|
||||
CraftEventFactory.handleInventoryCloseEvent((ServerPlayer) (Object) this);
|
||||
ArclightCaptures.resetContainerOwner();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user