summaryrefslogtreecommitdiff
path: root/ihl/processing/chemistry/FluidizedBedReactorContainer.java
diff options
context:
space:
mode:
authorFoghrye4 <foghrye4@gmail.com>2017-03-21 17:34:07 +0300
committerFoghrye4 <foghrye4@gmail.com>2017-03-21 17:34:07 +0300
commit7305ba719930ea3fbf8aa987aeec48b33cdbd82e (patch)
tree2307517925d965cd9228c8649013b07639987846 /ihl/processing/chemistry/FluidizedBedReactorContainer.java
parent5cb4c6e24033cf337812390d99a6817d24d21eab (diff)
Oregen
Diffstat (limited to 'ihl/processing/chemistry/FluidizedBedReactorContainer.java')
-rw-r--r--ihl/processing/chemistry/FluidizedBedReactorContainer.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/ihl/processing/chemistry/FluidizedBedReactorContainer.java b/ihl/processing/chemistry/FluidizedBedReactorContainer.java
index b2c7738..f1bdb3e 100644
--- a/ihl/processing/chemistry/FluidizedBedReactorContainer.java
+++ b/ihl/processing/chemistry/FluidizedBedReactorContainer.java
@@ -13,8 +13,7 @@ import net.minecraftforge.fluids.FluidStack;
public class FluidizedBedReactorContainer extends ContainerBase<FluidizedBedReactorTileEntity> {
protected FluidizedBedReactorTileEntity tileEntity;
- public int lastFluidAmount = -1;
- public int lastNumberOfFluids = -1;
+ public int lastFluidsHash = -1;
public short lastProgress = -1;
public short lastTemperature = -1;
public short lastEnergy = -1;
@@ -53,7 +52,7 @@ public class FluidizedBedReactorContainer extends ContainerBase<FluidizedBedReac
for (int i = 0; i < this.crafters.size(); ++i)
{
ICrafting icrafting = (ICrafting)this.crafters.get(i);
- if (this.tileEntity.getTankAmount() != this.lastFluidAmount || this.tileEntity.getNumberOfFluidsInTank() != this.lastNumberOfFluids)
+ if (fluidTankFluidList.hashCode() != this.lastFluidsHash)
{
IC2.network.get().sendContainerField(this, "fluidTankFluidList");
}
@@ -71,8 +70,7 @@ public class FluidizedBedReactorContainer extends ContainerBase<FluidizedBedReac
icrafting.sendProgressBarUpdate(this, 2, (short) this.tileEntity.energy);
}
}
- this.lastNumberOfFluids = this.tileEntity.getNumberOfFluidsInTank();
- this.lastFluidAmount = this.tileEntity.getTankAmount();
+ this.lastFluidsHash = fluidTankFluidList.hashCode();
this.lastProgress = this.tileEntity.progress;
this.lastTemperature = this.tileEntity.temperature;
this.lastEnergy = (short) this.tileEntity.energy;