Skip to content

Commit 7382db1

Browse files
authored
Fix Hologram Projector Shift-Use opening both GUIs (#46)
1 parent b669cbe commit 7382db1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/com/gtnewhorizon/structurelib/item/ItemConstructableTrigger.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ public ItemConstructableTrigger() {
2929
@Override
3030
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
3131
if (getMovingObjectPositionFromPlayer(world, player, true) == null) {
32-
if (!world.isRemote) {
32+
// channel gui is opened from server and config gui from client
33+
if (!world.isRemote && !player.isSneaking()) {
3334
player.openGui(StructureLib.instance(), 0, world, player.inventory.currentItem, 0, 0);
34-
} else if (player.isSneaking()) {
35+
} else if (world.isRemote && player.isSneaking()) {
3536
StructureLib.instance().proxy().displayConfigGUI("registries");
3637
}
3738
}

0 commit comments

Comments
 (0)