Fix opening mod containers
This commit is contained in:
parent
afb33f16de
commit
2f4e7e9a58
@ -667,7 +667,9 @@ public abstract class ServerPlayerEntityMixin extends PlayerEntityMixin implemen
|
||||
if (container != null) {
|
||||
((ContainerBridge) container).bridge$setTitle(itileinventory.getDisplayName());
|
||||
boolean cancelled = false;
|
||||
ArclightCaptures.captureContainerOwner((ServerPlayerEntity)(Object)this);
|
||||
container = CraftEventFactory.callInventoryOpenEvent((ServerPlayerEntity) (Object) this, container, cancelled);
|
||||
ArclightCaptures.resetContainerOwner();
|
||||
if (container == null && !cancelled) {
|
||||
if (itileinventory instanceof IInventory) {
|
||||
((IInventory) itileinventory).closeInventory((ServerPlayerEntity) (Object) this);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user