Made the laser relay work with just right-click

Closes #400
This commit is contained in:
Ellpeck 2016-11-23 16:55:39 +01:00
parent 39a72e176b
commit e745ebdc28

View file

@ -183,7 +183,7 @@ public class BlockLaserRelay extends BlockContainerBase implements IHudDisplay{
return true; return true;
} }
else if(relay instanceof TileEntityLaserRelayItemWhitelist && player.isSneaking()){ else if(relay instanceof TileEntityLaserRelayItemWhitelist){
if(!world.isRemote){ if(!world.isRemote){
player.openGui(ActuallyAdditions.instance, GuiHandler.GuiTypes.LASER_RELAY_ITEM_WHITELIST.ordinal(), world, pos.getX(), pos.getY(), pos.getZ()); player.openGui(ActuallyAdditions.instance, GuiHandler.GuiTypes.LASER_RELAY_ITEM_WHITELIST.ordinal(), world, pos.getX(), pos.getY(), pos.getZ());
} }