aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/nei/NEI_GT_Config.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/gtPlusPlus/nei/NEI_GT_Config.java')
-rw-r--r--src/Java/gtPlusPlus/nei/NEI_GT_Config.java33
1 files changed, 24 insertions, 9 deletions
diff --git a/src/Java/gtPlusPlus/nei/NEI_GT_Config.java b/src/Java/gtPlusPlus/nei/NEI_GT_Config.java
index 32d2a464f9..514612752d 100644
--- a/src/Java/gtPlusPlus/nei/NEI_GT_Config.java
+++ b/src/Java/gtPlusPlus/nei/NEI_GT_Config.java
@@ -3,7 +3,10 @@ package gtPlusPlus.nei;
import codechicken.nei.api.API;
import codechicken.nei.api.IConfigureNEI;
import gregtech.api.util.CustomRecipeMap;
-import gregtech.api.util.Recipe_GT.Gregtech_Recipe_Map;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GTPP_Recipe;
+import gregtech.api.util.GTPP_Recipe.GTPP_Recipe_Map;
+import gregtech.nei.GT_NEI_DefaultHandler;
import gtPlusPlus.api.objects.data.AutoMap;
public class NEI_GT_Config
@@ -16,20 +19,32 @@ implements IConfigureNEI {
public synchronized void loadConfig() {
sIsAdded = false;
- mUniqueRecipeMapHandling.add(Gregtech_Recipe_Map.sChemicalPlantRecipes.mUnlocalizedName);
- mUniqueRecipeMapHandling.add(Gregtech_Recipe_Map.sOreMillRecipes.mUnlocalizedName);
- mUniqueRecipeMapHandling.add(Gregtech_Recipe_Map.sFlotationCellRecipes.mUnlocalizedName);
- mUniqueRecipeMapHandling.add(Gregtech_Recipe_Map.sVacuumFurnaceRecipes.mUnlocalizedName);
+ mUniqueRecipeMapHandling.add(GTPP_Recipe_Map.sChemicalPlantRecipes.mUnlocalizedName);
+ mUniqueRecipeMapHandling.add(GTPP_Recipe_Map.sOreMillRecipes.mUnlocalizedName);
+ mUniqueRecipeMapHandling.add(GTPP_Recipe_Map.sFlotationCellRecipes.mUnlocalizedName);
+ mUniqueRecipeMapHandling.add(GTPP_Recipe_Map.sVacuumFurnaceRecipes.mUnlocalizedName);
- for (final CustomRecipeMap tMap : gregtech.api.util.CustomRecipeMap.sMappings) {
+ // Custom Recipe Maps
+ for (final CustomRecipeMap tMap : CustomRecipeMap.sMappings) {
if (tMap.mNEIAllowed) {
- new GT_NEI_DefaultHandler(tMap);
+ new GTPP_NEI_CustomMapHandler(tMap);
}
}
- for (final Gregtech_Recipe_Map tMap : gregtech.api.util.Recipe_GT.Gregtech_Recipe_Map.sMappings) {
+
+ // Custom Recipe maps
+ for (final GTPP_Recipe_Map tMap : GTPP_Recipe.GTPP_Recipe_Map.sMappings) {
+ if (tMap.mNEIAllowed) {
+ if (!mUniqueRecipeMapHandling.contains(tMap.mUnlocalizedName)) {
+ new GTPP_NEI_DefaultHandler(tMap);
+ }
+ }
+ }
+
+ // Standard GT Recipe Maps
+ for (final GT_Recipe_Map tMap : GTPP_Recipe.GTPP_Recipe_Map_Internal.sMappingsEx) {
if (tMap.mNEIAllowed) {
if (!mUniqueRecipeMapHandling.contains(tMap.mUnlocalizedName)) {
- new GT_NEI_MultiBlockHandler(tMap);
+ new GT_NEI_DefaultHandler(tMap);
}
}
}