diff options
| author | Blood-Asp <bloodasphendrik@gmail.com> | 2016-09-28 14:05:10 +0200 |
|---|---|---|
| committer | Technus <daniel112092@gmail.com> | 2016-10-02 13:13:07 +0200 |
| commit | c09ebb9e9b20755fcdef5782146fbde1cb4fc4ff (patch) | |
| tree | 312ca7a7d297676149625b295a150424d33694ab /src/main/java/gregtech/common/tools | |
| parent | cc89c94527a99453bd87f3328c6a753d96a6206a (diff) | |
| download | GT5-Unofficial-c09ebb9e9b20755fcdef5782146fbde1cb4fc4ff.tar.gz GT5-Unofficial-c09ebb9e9b20755fcdef5782146fbde1cb4fc4ff.tar.bz2 GT5-Unofficial-c09ebb9e9b20755fcdef5782146fbde1cb4fc4ff.zip | |
Teleport2 and readd null checks on tools
Diffstat (limited to 'src/main/java/gregtech/common/tools')
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/gregtech/common/tools/GT_Tool_File.java b/src/main/java/gregtech/common/tools/GT_Tool_File.java index 250edbe51a..19975f1228 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_File.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_File.java @@ -75,7 +75,7 @@ public class GT_Tool_File public boolean isMinableBlock(Block aBlock, byte aMetaData) { String tTool = aBlock.getHarvestTool(aMetaData); - return (tTool != null) && (tTool.equals("file")); + return ((tTool != null) && tTool.equals("file")); } public ItemStack getBrokenItem(ItemStack aStack) { diff --git a/src/main/java/gregtech/common/tools/GT_Tool_Plunger.java b/src/main/java/gregtech/common/tools/GT_Tool_Plunger.java index fc4e60904a..3fef69d7e8 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_Plunger.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_Plunger.java @@ -43,7 +43,7 @@ public class GT_Tool_Plunger public boolean isMinableBlock(Block aBlock, byte aMetaData) { String tTool = aBlock.getHarvestTool(aMetaData); - return (tTool != null) && (tTool.equals("plunger")); + return ((tTool != null) && tTool.equals("plunger")); } public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) { diff --git a/src/main/java/gregtech/common/tools/GT_Tool_SoftHammer.java b/src/main/java/gregtech/common/tools/GT_Tool_SoftHammer.java index 0b77a45ecd..ecbb43816e 100644 --- a/src/main/java/gregtech/common/tools/GT_Tool_SoftHammer.java +++ b/src/main/java/gregtech/common/tools/GT_Tool_SoftHammer.java @@ -84,7 +84,7 @@ public class GT_Tool_SoftHammer public boolean isMinableBlock(Block aBlock, byte aMetaData) { String tTool = aBlock.getHarvestTool(aMetaData); - return (tTool != null) && (tTool.equals("softhammer")); + return ((tTool != null) && tTool.equals("softhammer")); } public ItemStack getBrokenItem(ItemStack aStack) { |
