diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-10-10 22:34:02 +0100 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-10-10 22:34:02 +0100 |
commit | 8ca23d37495647bda859bc1821c2551cf8b21bf3 (patch) | |
tree | 73276dd1fc7f053fe8d48e1ce53174b813877dcd /src/Java/gtPlusPlus/xmod/gregtech | |
parent | c5f9ecbac07028812fe9dfca0924f604679575ce (diff) | |
download | GT5-Unofficial-8ca23d37495647bda859bc1821c2551cf8b21bf3.tar.gz GT5-Unofficial-8ca23d37495647bda859bc1821c2551cf8b21bf3.tar.bz2 GT5-Unofficial-8ca23d37495647bda859bc1821c2551cf8b21bf3.zip |
$ Fixed Wire Cutter handling for 5.09.32+.
$ Corrected Rainforest Oak sapling recipes and also fixed the Charcoal Pit Igniter. Further fixes #454.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech')
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechTools.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechTools.java b/src/Java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechTools.java index 2c9ddff4f1..236ae65edb 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechTools.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechTools.java @@ -49,12 +49,15 @@ public class MetaGeneratedGregtechTools extends GT_MetaGenerated_Tool { GT_HashSet<GT_ItemStack> aWireCutterList = new GT_HashSet<GT_ItemStack>(); //Does not exist prior to 5.09.32, use an empty field if we can't find the existing one. if (ReflectionUtils.doesFieldExist(GregTech_API.class, "sWireCutterList")) { - Field sWireCutterList = ReflectionUtils.getField(GregTech_API.class, ""); + Field sWireCutterList = ReflectionUtils.getField(GregTech_API.class, "sWireCutterList"); try { - Object val = sWireCutterList.get(null); - if (val != null && val instanceof GT_HashSet) { - aWireCutterList = (GT_HashSet<GT_ItemStack>) val; + if (sWireCutterList != null) { + Object val = sWireCutterList.get(null); + if (val != null && val instanceof GT_HashSet) { + aWireCutterList = (GT_HashSet<GT_ItemStack>) val; + } } + } catch (IllegalArgumentException | IllegalAccessException e) { // Not found, so it's GT 5.09.31 or earlier. |