From 075706790f74323a3a532321c3e39e49ed6e31d2 Mon Sep 17 00:00:00 2001 From: Alkalus Date: Sat, 9 Sep 2017 16:36:36 +1000 Subject: $ Fixed Quantum not having a recipe. - Removed a lot of logging during start-up. --- src/Java/gtPlusPlus/xmod/gregtech/HANDLER_GT.java | 2 +- .../gregtech/loaders/RecipeGen_BlastSmelter.java | 64 ++++++++++++---------- .../xmod/gregtech/recipes/GregtechRecipeAdder.java | 34 ++++++------ 3 files changed, 52 insertions(+), 48 deletions(-) (limited to 'src/Java/gtPlusPlus/xmod') diff --git a/src/Java/gtPlusPlus/xmod/gregtech/HANDLER_GT.java b/src/Java/gtPlusPlus/xmod/gregtech/HANDLER_GT.java index a206dafd59..5dfb9ebd2b 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/HANDLER_GT.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/HANDLER_GT.java @@ -64,7 +64,7 @@ public class HANDLER_GT { public static void postInit(){ //Register some custom recipe maps for any enabled multiblocks. - MultiblockRecipeMapHandler.run(); + //MultiblockRecipeMapHandler.run(); } } diff --git a/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelter.java b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelter.java index fee6fbc63c..d66649850a 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelter.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_BlastSmelter.java @@ -74,7 +74,6 @@ public class RecipeGen_BlastSmelter implements Runnable{ duration = 40*M.vTier*20; } - int mMaterialListSize=0; if (M.getComposites() != null){ for (final gtPlusPlus.core.material.MaterialStack ternkfsdf : M.getComposites()){ @@ -87,7 +86,12 @@ public class RecipeGen_BlastSmelter implements Runnable{ mMaterialListSize = 1; } - Utils.LOG_WARNING("Size: "+mMaterialListSize); + if (duration <= 0){ + int second = 20; + duration = 14*second*mMaterialListSize; + } + + Utils.LOG_WARNING("[BAS] Size: "+mMaterialListSize); //Make a simple one Material Materialstack[] and log it for validity. @@ -95,10 +99,10 @@ public class RecipeGen_BlastSmelter implements Runnable{ final ItemStack[] tItemStackTest = new ItemStack[]{circuitGT, tStack}; inputStackCount = 1; fluidAmount = 144*inputStackCount; - Utils.LOG_WARNING("Adding an Alloy Blast Smelter Recipe for "+M.getLocalizedName()+". Gives "+fluidAmount+"L of molten metal."); + Utils.LOG_WARNING("[BAS] Adding an Alloy Blast Smelter Recipe for "+M.getLocalizedName()+". Gives "+fluidAmount+"L of molten metal."); for (int das=0;das 1){ if (aInput[1] != null){ - Utils.LOG_INFO("Recipe requires input: "+aInput[1].getDisplayName()+" x"+aInput[1].stackSize); + Utils.LOG_WARNING("Recipe requires input: "+aInput[1].getDisplayName()+" x"+aInput[1].stackSize); } } if (aFluidInput != null){ - Utils.LOG_INFO("Recipe requires input: "+aFluidInput.getFluid().getName()+" "+aFluidInput.amount+"mbst"); + Utils.LOG_WARNING("Recipe requires input: "+aFluidInput.getFluid().getName()+" "+aFluidInput.amount+"mbst"); } if (((aInput[0] == null) && (aFluidInput == null)) || ((aOutputItems == null) && (aFluidOutput == null))) { return false; @@ -227,30 +227,30 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder { return false; } if (aOutputItems != null){ - Utils.LOG_INFO("Recipe will output: "+ItemUtils.getArrayStackNames(aOutputItems)); + Utils.LOG_WARNING("Recipe will output: "+ItemUtils.getArrayStackNames(aOutputItems)); } if ((aFluidOutput != null) && ((aDuration = GregTech_API.sRecipeFile.get("dehydrator", aFluidOutput.getFluid().getName(), aDuration)) <= 0)) { return false; } if (aFluidOutput != null){ - Utils.LOG_INFO("Recipe will output: "+aFluidOutput.getFluid().getName()); + Utils.LOG_WARNING("Recipe will output: "+aFluidOutput.getFluid().getName()); } if (aInput.length == 1){ - Utils.LOG_INFO("Dehydrator recipe only has a single input item."); + Utils.LOG_WARNING("Dehydrator recipe only has a single input item."); Recipe_GT.Gregtech_Recipe_Map.sChemicalDehydratorRecipes.addRecipe(true, aInput, aOutputItems, null, aChances, new FluidStack[]{aFluidInput}, new FluidStack[]{aFluidOutput}, aDuration, aEUt, 0); } else { - Utils.LOG_INFO("Dehydrator recipe has two input items."); + Utils.LOG_WARNING("Dehydrator recipe has two input items."); Recipe_GT.Gregtech_Recipe_Map.sChemicalDehydratorRecipes.addRecipe(true, aInput, aOutputItems, null, aChances, new FluidStack[]{aFluidInput}, new FluidStack[]{aFluidOutput}, aDuration, aEUt, 0); } return true; - }catch (final NullPointerException e){Utils.LOG_INFO("FAILED TO LOAD RECIPES - NULL POINTER SOMEWHERE");return false;} + }catch (final NullPointerException e){Utils.LOG_WARNING("FAILED TO LOAD RECIPES - NULL POINTER SOMEWHERE");return false;} } -- cgit