diff options
Diffstat (limited to 'src/Java')
-rw-r--r-- | src/Java/gregtech/api/util/CustomRecipeMap.java | 46 | ||||
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/creative/GregtechMetaCreativeEnergyBuffer.java | 2 |
2 files changed, 24 insertions, 24 deletions
diff --git a/src/Java/gregtech/api/util/CustomRecipeMap.java b/src/Java/gregtech/api/util/CustomRecipeMap.java index d01beb1486..a4a1b0b061 100644 --- a/src/Java/gregtech/api/util/CustomRecipeMap.java +++ b/src/Java/gregtech/api/util/CustomRecipeMap.java @@ -214,7 +214,7 @@ public class CustomRecipeMap/* extends GT_Recipe_Map*/{ public GT_Recipe findRecipe(final IHasWorldObjectAndCoords aTileEntity, final GT_Recipe aRecipe, final boolean aNotUnificated, final long aVoltage, final FluidStack[] aFluids, final ItemStack aSpecialSlot, ItemStack... aInputs) { // No Recipes? Well, nothing to be found then. if (this.mRecipeList.isEmpty()) { - Utils.LOG_INFO("BAD RECIPE"); + Utils.LOG_WARNING("BAD RECIPE"); return null; } @@ -223,7 +223,7 @@ public class CustomRecipeMap/* extends GT_Recipe_Map*/{ if (GregTech_API.sPostloadFinished) { if (this.mMinimalInputFluids > 0) { if (aFluids == null) { - Utils.LOG_INFO("BAD RECIPE [1]"); + Utils.LOG_WARNING("BAD RECIPE [1]"); return null; } int tAmount = 0; @@ -233,13 +233,13 @@ public class CustomRecipeMap/* extends GT_Recipe_Map*/{ } } if (tAmount < this.mMinimalInputFluids) { - Utils.LOG_INFO("BAD RECIPE [2]"); + Utils.LOG_WARNING("BAD RECIPE [2]"); return null; } } if (this.mMinimalInputItems > 0) { if (aInputs == null) { - Utils.LOG_INFO("BAD RECIPE [3]"); + Utils.LOG_WARNING("BAD RECIPE [3]"); return null; } int tAmount = 0; @@ -249,7 +249,7 @@ public class CustomRecipeMap/* extends GT_Recipe_Map*/{ } } if (tAmount < this.mMinimalInputItems) { - Utils.LOG_INFO("BAD RECIPE [4]"); + Utils.LOG_WARNING("BAD RECIPE [4]"); return null; } } @@ -263,38 +263,38 @@ public class CustomRecipeMap/* extends GT_Recipe_Map*/{ // Check the Recipe which has been used last time in order to not have to search for it again, if possible. if (aRecipe != null) { if (!aRecipe.mFakeRecipe && aRecipe.mCanBeBuffered && aRecipe.isRecipeInputEqual(false, true, aFluids, aInputs)) { - Utils.LOG_INFO("BAD RECIPE [a]"); + Utils.LOG_WARNING("BAD RECIPE [a]"); return aRecipe.mEnabled && ((aVoltage * this.mAmperage) >= aRecipe.mEUt) ? aRecipe : null; } } // Now look for the Recipes inside the Item HashMaps, but only when the Recipes usually have Items. if ((this.mUsualInputCount > 0) && (aInputs != null)) { - Utils.LOG_INFO("BAD RECIPE [b0]"); + Utils.LOG_WARNING("BAD RECIPE [b0]"); for (final ItemStack tStack : aInputs) { - Utils.LOG_INFO("BAD RECIPE [b1]"); + Utils.LOG_WARNING("BAD RECIPE [b1]"); if (tStack != null) { - Utils.LOG_INFO("BAD RECIPE [b2] | "+tStack.getDisplayName()); + Utils.LOG_WARNING("BAD RECIPE [b2] | "+tStack.getDisplayName()); Collection<GT_Recipe> tRecipes = this.mRecipeItemMap.get(new GT_ItemStack(tStack)); if (tRecipes != null) { - Utils.LOG_INFO("BAD RECIPE [b3]"); + Utils.LOG_WARNING("BAD RECIPE [b3]"); for (final GT_Recipe tRecipe : tRecipes) { - Utils.LOG_INFO("BAD RECIPE [b4]"); + Utils.LOG_WARNING("BAD RECIPE [b4]"); if (!tRecipe.mFakeRecipe && tRecipe.isRecipeInputEqual(false, true, aFluids, aInputs)) { - Utils.LOG_INFO("BAD RECIPE [b5]"); + Utils.LOG_WARNING("BAD RECIPE [b5]"); return tRecipe.mEnabled && ((aVoltage * this.mAmperage) >= tRecipe.mEUt) ? tRecipe : null; } } } - Utils.LOG_INFO("BAD RECIPE [b6]"); + Utils.LOG_WARNING("BAD RECIPE [b6]"); tRecipes = this.mRecipeItemMap.get(new GT_ItemStack(GT_Utility.copyMetaData(W, tStack))); if (tRecipes != null) { - Utils.LOG_INFO("BAD RECIPE [b7]"); + Utils.LOG_WARNING("BAD RECIPE [b7]"); for (final GT_Recipe tRecipe : tRecipes) { - Utils.LOG_INFO("BAD RECIPE [b8]"); + Utils.LOG_WARNING("BAD RECIPE [b8]"); if (!tRecipe.mFakeRecipe && tRecipe.isRecipeInputEqual(false, true, aFluids, aInputs)) { - Utils.LOG_INFO("BAD RECIPE [b9]"); + Utils.LOG_WARNING("BAD RECIPE [b9]"); return tRecipe.mEnabled && ((aVoltage * this.mAmperage) >= tRecipe.mEUt) ? tRecipe : null; } } @@ -305,19 +305,19 @@ public class CustomRecipeMap/* extends GT_Recipe_Map*/{ // If the minimal Amount of Items for the Recipe is 0, then it could be a Fluid-Only Recipe, so check that Map too. if ((this.mMinimalInputItems == 0) && (aFluids != null && aFluids.length > 0)) { - Utils.LOG_INFO("BAD RECIPE [c0] "+aFluids.length); + Utils.LOG_WARNING("BAD RECIPE [c0] "+aFluids.length); for (final FluidStack aFluid : aFluids) { - Utils.LOG_INFO("BAD RECIPE [c1]"); + Utils.LOG_WARNING("BAD RECIPE [c1]"); if (aFluid != null) { - Utils.LOG_INFO("BAD RECIPE [c2]"); + Utils.LOG_WARNING("BAD RECIPE [c2]"); final Collection<GT_Recipe> tRecipes = this.mRecipeFluidMap.get(aFluid.getFluid()); if (tRecipes != null) { - Utils.LOG_INFO("BAD RECIPE [c3]"); + Utils.LOG_WARNING("BAD RECIPE [c3]"); for (final GT_Recipe tRecipe : tRecipes) { - Utils.LOG_INFO("BAD RECIPE [c4]"); + Utils.LOG_WARNING("BAD RECIPE [c4]"); if (!tRecipe.mFakeRecipe && tRecipe.isRecipeInputEqual(false, true, aFluids, aInputs)) { - Utils.LOG_INFO("BAD RECIPE [c5]"); + Utils.LOG_WARNING("BAD RECIPE [c5]"); return tRecipe.mEnabled && ((aVoltage * this.mAmperage) >= tRecipe.mEUt) ? tRecipe : null; } } @@ -327,7 +327,7 @@ public class CustomRecipeMap/* extends GT_Recipe_Map*/{ } // And nothing has been found. - Utils.LOG_INFO("BAD RECIPE [5]"); + Utils.LOG_WARNING("BAD RECIPE [5]"); return null; } diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/creative/GregtechMetaCreativeEnergyBuffer.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/creative/GregtechMetaCreativeEnergyBuffer.java index 58ee41cf9d..f7c0ad3432 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/creative/GregtechMetaCreativeEnergyBuffer.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/generators/creative/GregtechMetaCreativeEnergyBuffer.java @@ -87,7 +87,7 @@ public class GregtechMetaCreativeEnergyBuffer extends GregtechMetaEnergyBuffer { @Override public long getMinimumStoredEU() { - return Long.MAX_VALUE; + return 0; } @Override |