aboutsummaryrefslogtreecommitdiff
path: root/src/Java
diff options
context:
space:
mode:
authordraknyte1 <draknyte1@hotmail.com>2017-02-18 12:12:37 +1000
committerdraknyte1 <draknyte1@hotmail.com>2017-02-18 12:12:37 +1000
commit29f928e7e660f37496c2afceaf397ba555b5ad52 (patch)
tree3ea5df6b1dbb099314881cbd35c911bf52b7af28 /src/Java
parentc9c88ba2d1091872394bff44552915288a9c281b (diff)
downloadGT5-Unofficial-29f928e7e660f37496c2afceaf397ba555b5ad52.tar.gz
GT5-Unofficial-29f928e7e660f37496c2afceaf397ba555b5ad52.tar.bz2
GT5-Unofficial-29f928e7e660f37496c2afceaf397ba555b5ad52.zip
+ Additional LFTR work, it's nearly finished.
- Removed some debug logging from Fish Traps.
Diffstat (limited to 'src/Java')
-rw-r--r--src/Java/gtPlusPlus/core/inventories/InventoryFishTrap.java4
-rw-r--r--src/Java/gtPlusPlus/core/tileentities/general/TileEntityFishTrap.java4
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMTE_NuclearReactor.java13
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<INV_SIZE;i++){
ItemStack stack = inventory[i];
if(stack != null){
- Utils.LOG_INFO("Trying to write NBT data to inventory.");
+ //Utils.LOG_INFO("Trying to write NBT data to inventory.");
NBTTagCompound data = new NBTTagCompound();
stack.writeToNBT(data);
data.setInteger("Slot", i);
diff --git a/src/Java/gtPlusPlus/core/tileentities/general/TileEntityFishTrap.java b/src/Java/gtPlusPlus/core/tileentities/general/TileEntityFishTrap.java
index 5f6bd802a3..5d07020bf3 100644
--- a/src/Java/gtPlusPlus/core/tileentities/general/TileEntityFishTrap.java
+++ b/src/Java/gtPlusPlus/core/tileentities/general/TileEntityFishTrap.java
@@ -210,7 +210,7 @@ public class TileEntityFishTrap extends TileEntity{
@Override
public void writeToNBT(NBTTagCompound nbt){
super.writeToNBT(nbt);
- Utils.LOG_INFO("Trying to write NBT data to TE.");
+ //Utils.LOG_INFO("Trying to write NBT data to TE.");
NBTTagCompound chestData = new NBTTagCompound();
inventoryContents.writeToNBT(chestData);
nbt.setTag("ContentsChest", chestData);
@@ -219,7 +219,7 @@ public class TileEntityFishTrap extends TileEntity{
@Override
public void readFromNBT(NBTTagCompound nbt){
super.readFromNBT(nbt);
- Utils.LOG_INFO("Trying to read NBT data from TE.");
+ //Utils.LOG_INFO("Trying to read NBT data from TE.");
inventoryContents.readFromNBT(nbt.getCompoundTag("ContentsChest"));
}
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMTE_NuclearReactor.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMTE_NuclearReactor.java
index 01e4edd026..f6dff6853e 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMTE_NuclearReactor.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMTE_NuclearReactor.java
@@ -1,6 +1,5 @@
package gtPlusPlus.xmod.gregtech.common.tileentities.machines.multi;
-import gregtech.GT_Mod;
import gregtech.api.enums.*;
import gregtech.api.interfaces.ITexture;
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
@@ -14,7 +13,6 @@ import gtPlusPlus.core.block.ModBlocks;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.material.ELEMENT;
import gtPlusPlus.core.material.nuclear.FLUORIDES;
-import gtPlusPlus.core.material.nuclear.NUCLIDE;
import gtPlusPlus.core.util.Utils;
import gtPlusPlus.core.util.math.MathUtils;
import gtPlusPlus.xmod.gregtech.api.gui.GUI_MultiMachine;
@@ -23,7 +21,6 @@ import java.util.ArrayList;
import java.util.Collection;
import net.minecraft.entity.player.InventoryPlayer;
-import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.fluids.FluidStack;
@@ -341,13 +338,21 @@ public class GregtechMTE_NuclearReactor extends GT_MetaTileEntity_MultiBlockBase
ArrayList<FluidStack> tFluids = getStoredFluids();
Collection<GT_Recipe> 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[]{};