aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/gtPlusPlus/xmod')
-rw-r--r--src/Java/gtPlusPlus/xmod/bop/blocks/BOP_Block_Registrator.java2
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechTools.java11
2 files changed, 8 insertions, 5 deletions
diff --git a/src/Java/gtPlusPlus/xmod/bop/blocks/BOP_Block_Registrator.java b/src/Java/gtPlusPlus/xmod/bop/blocks/BOP_Block_Registrator.java
index 92e626cea0..ea9b61bb2e 100644
--- a/src/Java/gtPlusPlus/xmod/bop/blocks/BOP_Block_Registrator.java
+++ b/src/Java/gtPlusPlus/xmod/bop/blocks/BOP_Block_Registrator.java
@@ -48,7 +48,7 @@ public class BOP_Block_Registrator {
public static final void recipes() {
//Rainforest Oak
addLogRecipes(ItemUtils.getSimpleStack(log_Rainforest));
- addSaplingRecipes(ItemUtils.getSimpleStack(log_Rainforest));
+ addSaplingRecipes(ItemUtils.getSimpleStack(sapling_Rainforest));
}
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.