Code cleanup

This commit is contained in:
TheDarkDnKTv 2021-02-02 01:26:19 +02:00
parent 07d21771da
commit 11d10d343c
3 changed files with 0 additions and 16 deletions

View file

@ -1078,7 +1078,6 @@ public class GT_Mod implements IGT_Mod {
@EventHandler
public void start(FMLServerStartedEvent aEvent) {
if (!mDoNotInit) {
Recipe.reInit();
GregTech_API.sWirelessRedstone.clear();
}
}

View file

@ -44,19 +44,6 @@ public class Recipe {
/** It is an IdentityHashMap, because it uses a List as Key, and since that List changes (and therefore the Result of the equals Method), the Key is not secure, while the Identity is. */
private static final IdentityHashMap<List<Recipe>, Map<Integer, List<Recipe>>> RECIPE_MAPPINGS = new IdentityHashMap<>();
public static void reInit() {
// GT_Log.log.info("GT_Mod: Re-Unificating Recipes.");
// for (Entry<List<GT_Recipe>, HashMap<Integer, List<GT_Recipe>>> tMapEntry : sRecipeMappings.entrySet()) {
// HashMap<Integer, List<GT_Recipe>> tMap = tMapEntry.getValue();
// if (tMap != null) tMap.clear();
// for (GT_Recipe tRecipe : tMapEntry.getKey()) {
// GT_OreDictUnificator.setStackArray(true, tRecipe.mInputs);
// GT_OreDictUnificator.setStackArray(true, tRecipe.mOutputs);
// if (tMap != null) tRecipe.addToMap(tMap);
// }
// }
}
public ItemStack[][] mInputs;
public ItemStack[] mOutputs;
public int mDuration;

View file

@ -9,7 +9,6 @@ import gregtechmod.api.enums.GT_ToolDictNames;
import gregtechmod.api.enums.Materials;
import gregtechmod.api.enums.OrePrefixes;
import gregtechmod.api.items.GT_MetaGenerated_Item;
import gregtechmod.api.recipe.Recipe;
import gregtechmod.api.util.GT_Log;
import gregtechmod.api.util.GT_ModHandler;
import gregtechmod.api.util.GT_OreDictUnificator;
@ -643,6 +642,5 @@ public class GT_OreDictHandler {
}
GregTech_API.sUnification.mConfig.save();
Recipe.reInit();
}
}