From d2a5f3bb17124d7420d3a0150f6285fcf75cd4f3 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 1 May 2016 10:29:34 +0200 Subject: [PATCH] Made drill be openable again. Closes #89 --- .../java/de/ellpeck/actuallyadditions/mod/items/ItemDrill.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemDrill.java b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemDrill.java index 535840559..a873c5533 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemDrill.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemDrill.java @@ -167,7 +167,7 @@ public class ItemDrill extends ItemEnergy{ @Override public ActionResult 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(EnumActionResult.PASS, stack);