Skip to content

Conversation

@PotatoPresident
Copy link

Removed GenericIronChestBlockEntity#createMenu override. This is necessary as it calls createScreenHandler.

    public ScreenHandler createMenu(int i, PlayerInventory playerInventory, PlayerEntity playerEntity) {
        return this.checkUnlocked(playerEntity) ? this.createScreenHandler(i, playerInventory) : null;
    }

Fixes compat with vanilla chest lock system and mods that use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant