Fix Hologram Projector Shift-Use opening both GUIs (#46)

This commit is contained in:
Wilhelm Schuster authored and GitHub committed 2025-09-14 19:00:59 +02:00
1 parent b669cbecf1
commit 7382db1bbd
1 file changed
+3 -2
@@ -29,9 +29,10 @@ public class ItemConstructableTrigger extends Item {
@Override
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
if (getMovingObjectPositionFromPlayer(world, player, true) == null) {
if (!world.isRemote) {
// channel gui is opened from server and config gui from client
if (!world.isRemote && !player.isSneaking()) {
player.openGui(StructureLib.instance(), 0, world, player.inventory.currentItem, 0, 0);
} else if (player.isSneaking()) {
} else if (world.isRemote && player.isSneaking()) {
StructureLib.instance().proxy().displayConfigGUI("registries");
}
}