From 8d8594dabd6c3eafe3c7ed19c129d43fbe66fad4 Mon Sep 17 00:00:00 2001 From: Blood-Asp Date: Sun, 25 Oct 2015 23:56:58 +0100 Subject: GT Wrench now implements Buildcrafts Wrench IToolWrench --- src/main/java/gregtech/common/tools/GT_Tool.java | 4 ++++ src/main/java/gregtech/common/tools/GT_Tool_Wrench.java | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'src/main/java/gregtech/common/tools') diff --git a/src/main/java/gregtech/common/tools/GT_Tool.java b/src/main/java/gregtech/common/tools/GT_Tool.java index 054aafb439..32392a2004 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool.java +++ b/src/main/java/gregtech/common/tools/GT_Tool.java @@ -84,6 +84,10 @@ public abstract class GT_Tool public boolean isGrafter() { return false; } + + public boolean isWrench() { + return false; + } public boolean isWeapon() { return false; diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Wrench.java b/src/main/java/gregtech/common/tools/GT_Tool_Wrench.java index 7ce3155d82..f5313020cf 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Wrench.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Wrench.java @@ -90,6 +90,10 @@ public class GT_Tool_Wrench return false; } + public boolean isWrench() { + return true; + } + public boolean isMinableBlock(Block aBlock, byte aMetaData) { String tTool = aBlock.getHarvestTool(aMetaData); return ((tTool != null) && (tTool.equals("wrench"))) || (aBlock.getMaterial() == Material.piston) || (aBlock == Blocks.hopper) || (aBlock == Blocks.dispenser) || (aBlock == Blocks.dropper); -- cgit