From 2b80c158bc3ab209f496faed1bd0c8bac9475922 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Fri, 20 Jan 2017 21:18:42 -1000 Subject: [PATCH] Fix crash rendering empty electric tool --- src/main/java/gregtech/api/items/GT_MetaGenerated_Tool.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/gregtech/api/items/GT_MetaGenerated_Tool.java b/src/main/java/gregtech/api/items/GT_MetaGenerated_Tool.java index b80a4e30..84944153 100644 --- a/src/main/java/gregtech/api/items/GT_MetaGenerated_Tool.java +++ b/src/main/java/gregtech/api/items/GT_MetaGenerated_Tool.java @@ -511,10 +511,8 @@ public abstract class GT_MetaGenerated_Tool extends GT_MetaBase_Item implements } public IToolStats getToolStats(ItemStack aStack) { - if(isItemStackUsable(aStack)) { - return getToolStatsInternal(aStack); - } - return null; + // if(isItemStackUsable(aStack)) { // why? + return getToolStatsInternal(aStack); } private IToolStats getToolStatsInternal(ItemStack aStack) {