mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-08 12:34:50 +00:00
Fix Hologram Projector Shift-Use opening both GUIs (#46)
This commit is contained in:
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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user