From fe885b60b590785212b0f417c60c56914d111c51 Mon Sep 17 00:00:00 2001 From: Alkalus Date: Fri, 14 Jul 2017 14:33:28 +1000 Subject: $ Fixed a order of operation bug, where recipe removal of new circuits wouldn't occur, as the variables it checked to see if the option was enabled were loaded after the recipe map edit. + Attempted to override the list of GT circuits with my own, to prevent NEI clutter. --- .../xmod/gregtech/common/items/MetaGeneratedGregtechItems.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Java/gtPlusPlus/xmod/gregtech/common/items') diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechItems.java b/src/Java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechItems.java index d2703d7958..fb6aa9991d 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechItems.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/common/items/MetaGeneratedGregtechItems.java @@ -277,7 +277,6 @@ public class MetaGeneratedGregtechItems extends Gregtech_MetaItem_X32 { //Add the old recipes. new RECIPES_Old_Circuits(); - RECIPES_Old_Circuits.addCircuitRecipes(); Utils.LOG_INFO("[Old Feature] Enabling Pre 5.09.28 circuits & recipes."); Boolean isNEILoaded = Loader.isModLoaded("NotEnoughItems"); @@ -372,7 +371,10 @@ public class MetaGeneratedGregtechItems extends Gregtech_MetaItem_X32 { for (String component : CircuitToHide){ API.hideItem(ItemList.valueOf(component).get(1L, new Object[0])); - } + } + + + RECIPES_Old_Circuits.removeNewCircuits(); } return true; -- cgit