Fix Hologram Projector config GUI not releasing cursor (#45)

This commit is contained in:
Wilhelm Schuster authored and GitHub committed 2025-09-14 10:21:21 +02:00
1 parent 6283931667
commit b669cbecf1
3 files changed
+7 -7

No files matched your search

@@ -28,11 +28,11 @@ public class ItemConstructableTrigger extends Item {
@Override
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
if (!world.isRemote && getMovingObjectPositionFromPlayer(world, player, true) == null) {
if (player.isSneaking()) {
StructureLib.instance().proxy().displayConfigGUI("registries");
} else {
if (getMovingObjectPositionFromPlayer(world, player, true) == null) {
if (!world.isRemote) {
player.openGui(StructureLib.instance(), 0, world, player.inventory.currentItem, 0, 0);
} else if (player.isSneaking()) {
StructureLib.instance().proxy().displayConfigGUI("registries");
}
}
return super.onItemRightClick(stack, world, player);