Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better compatibility of the largeShulkerBox rule with other mods #89

Merged

Conversation

Kir-Antipov
Copy link
Contributor

Description

This PR aims to improve the compatibility of the largeShulkerBox rule with other mods.

Currently, this mod quietly replaces a vanilla screen handler with a custom one (largeShulkerBoxScreenHandler) during a player's interaction with a shulker box block. While this approach works fine on its own, it leaves no easy way for other modders to open a "proper" shulker box screen when a shulker box is not materialized in its block form in the world. The issue is not critical, as it doesn't lead to crashes or serious bugs, but it's far from ideal because players in such scenarios can only access half of the expected capacity of their shulker boxes.

The PR removes the custom screen handler entirely and instead patches the vanilla one. This way, anyone using ShulkerBoxScreenHandler can expect the right screen to pop up, regardless of whether the largeShulkerBox rule is enabled or not.

Tested on 1.16.5, 1.17.1, 1.18.2, 1.19.4, and 1.20.4, both client and server-side.

Fixed Issues

Fixes #81
Fixes Kir-Antipov/packed-inventory#14

Made `ShulkerBoxScreenHandler` compatible with the `largeShulkerBox` rule.
This is needed to get rid of the runtime warning.
@1024-byteeeee 1024-byteeeee merged commit 8be01bf into Minecraft-AMS:master Jan 18, 2024
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.

Packed Inventory double Shulker Box support Improvements
2 participants