Made drill be openable again. Closes #89

This commit is contained in:
Ellpeck 2016-05-01 10:29:34 +02:00
parent 5faa779725
commit d2a5f3bb17

View file

@ -167,7 +167,7 @@ public class ItemDrill extends ItemEnergy{
@Override
public ActionResult<ItemStack> onItemRightClick(ItemStack stack, World world, EntityPlayer player, EnumHand hand){
if(!world.isRemote && player.isSneaking() && stack == player.getActiveItemStack()){
if(!world.isRemote && player.isSneaking()){
player.openGui(ActuallyAdditions.instance, GuiHandler.GuiTypes.DRILL.ordinal(), world, (int)player.posX, (int)player.posY, (int)player.posZ);
}
return new ActionResult<ItemStack>(EnumActionResult.PASS, stack);