From d27fbf6e99361cd5332fd80f9cbee5993efc7411 Mon Sep 17 00:00:00 2001 From: Alkalus Date: Tue, 18 Jul 2017 10:38:32 +1000 Subject: $ Fixes #100. $ Fixes CI not handling OrePrefix names correctly. (Actually forgot to return the item at all) - Removes logging regarding generated pipes. % Changed recipe load position for Simple Washer. % Changed the cost of Multiblock controllers. --- .../core/block/machine/Machine_WorkbenchAdvanced.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/Java/gtPlusPlus/core/block/machine') diff --git a/src/Java/gtPlusPlus/core/block/machine/Machine_WorkbenchAdvanced.java b/src/Java/gtPlusPlus/core/block/machine/Machine_WorkbenchAdvanced.java index 436fc5bf39..2e647a1a26 100644 --- a/src/Java/gtPlusPlus/core/block/machine/Machine_WorkbenchAdvanced.java +++ b/src/Java/gtPlusPlus/core/block/machine/Machine_WorkbenchAdvanced.java @@ -68,7 +68,7 @@ public class Machine_WorkbenchAdvanced extends BlockContainer public boolean onBlockActivated(final World world, final int x, final int y, final int z, final EntityPlayer player, final int side, final float lx, final float ly, final float lz) { - final ItemStack heldItem = PlayerUtils.getItemStackInPlayersHand(player); + /*final ItemStack heldItem = PlayerUtils.getItemStackInPlayersHand(player); if (world.isRemote) { return true; } @@ -81,15 +81,15 @@ public class Machine_WorkbenchAdvanced extends BlockContainer else if (heldItem.getItem() instanceof IToolWrench){ holdingWrench = true; } - /*else if (heldItem.getItem() instanceof ITool){ + else if (heldItem.getItem() instanceof ITool){ holdingWrench = true; - }*/ - /*else if (heldItem.getItem() instanceof GT_MetaGenerated_Tool){ + } + else if (heldItem.getItem() instanceof GT_MetaGenerated_Tool){ GT_MetaGenerated_Tool testTool = (GT_MetaGenerated_Tool) heldItem.getItem(); if (testTool.canWrench(player, x, y, z)){ holdingWrench = true; } - }*/ + } else { holdingWrench = false; } @@ -104,7 +104,7 @@ public class Machine_WorkbenchAdvanced extends BlockContainer return true; } Utils.LOG_INFO("Holding a Wrench, doing wrench things instead."); - } + }*/ return false; } -- cgit