From 29f928e7e660f37496c2afceaf397ba555b5ad52 Mon Sep 17 00:00:00 2001 From: draknyte1 Date: Sat, 18 Feb 2017 12:12:37 +1000 Subject: + Additional LFTR work, it's nearly finished. - Removed some debug logging from Fish Traps. --- src/Java/gtPlusPlus/core/inventories/InventoryFishTrap.java | 4 ++-- .../core/tileentities/general/TileEntityFishTrap.java | 4 ++-- .../machines/multi/GregtechMTE_NuclearReactor.java | 13 +++++++++---- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/Java/gtPlusPlus/core/inventories/InventoryFishTrap.java b/src/Java/gtPlusPlus/core/inventories/InventoryFishTrap.java index ca6d006740..d3e2de8b99 100644 --- a/src/Java/gtPlusPlus/core/inventories/InventoryFishTrap.java +++ b/src/Java/gtPlusPlus/core/inventories/InventoryFishTrap.java @@ -24,7 +24,7 @@ public class InventoryFishTrap implements IInventory{ NBTTagCompound data = list.getCompoundTagAt(i); int slot = data.getInteger("Slot"); if(slot >= 0 && slot < INV_SIZE){ - Utils.LOG_INFO("Trying to read NBT data from inventory."); + //Utils.LOG_INFO("Trying to read NBT data from inventory."); inventory[slot] = ItemStack.loadItemStackFromNBT(data); } } @@ -35,7 +35,7 @@ public class InventoryFishTrap implements IInventory{ for(int i = 0;i tFluids = getStoredFluids(); Collection tRecipeList = Recipe_GT.Gregtech_Recipe_Map.sLiquidFluorineThoriumReactorRecipes.mRecipeList; if(tFluids.size() > 0 && tRecipeList != null) { //Does input hatch have a LFTR fuel? + Utils.LOG_INFO("Found more than one input fluid and a list of valid recipes."); + boolean containsFLIBE = false; + boolean containsPrimarySalt = false; for (FluidStack hatchFluid1 : tFluids) { //Loops through hatches + Utils.LOG_INFO("Looping through Input hatches - Found "+hatchFluid1.getLocalizedName()); for(GT_Recipe aFuel : tRecipeList) { //Loops through LFTR fuel recipes + Utils.LOG_INFO("Looping through Recipes."); FluidStack tLiquid; - if ((tLiquid = GT_Utility.getFluidForFilledItem(aFuel.getRepresentativeInput(0), true)) != null) { //Create fluidstack from current recipe + if ((tLiquid = GT_Utility.getFluidForFilledItem(aFuel.getRepresentativeInput(1), true)) != null) { //Create fluidstack from current recipe + Utils.LOG_INFO("Creating a fluidstack from the current recipe"); if (hatchFluid1.isFluidEqual(tLiquid)) { //Has a LFTR fluid + Utils.LOG_INFO("Input hatch contains some LFTR Fuel"); fuelConsumption = tLiquid.amount = boostEu ? (4096 / aFuel.mSpecialValue) : (2048 / aFuel.mSpecialValue); //Calc fuel consumption if(depleteInput(tLiquid)) { //Deplete that amount + Utils.LOG_INFO("Depleted some input fluid"); //Make an empty fluid stack for possible sparging output FluidStack[] spargeOutput = new FluidStack[]{}; -- cgit