Make a start on the boiler.

It's currently causing odd issues with the heat simulator and has various issues such as balance not existing yet.
Also improve the specification of a load of the multiblock generics to reduce needless casting.
This commit is contained in:
Ben Spiers committed 2015-01-08 05:26:53 +00:00
1 parent ccf7a37b22
commit 385a1d29f6
25 files changed
+1236 -38

No files matched your search

@@ -34,9 +34,9 @@ public class TileEntityDynamicValve extends TileEntityDynamicTank implements IFl
@Override
public FluidStack drain(ForgeDirection from, FluidStack resource, boolean doDrain)
{
if(fluidTank.dynamicTank.structure != null && fluidTank.dynamicTank.structure.fluidStored != null)
if(structure != null && structure.fluidStored != null)
{
if(resource.getFluid() == fluidTank.dynamicTank.structure.fluidStored.getFluid())
if(resource.getFluid() == structure.fluidStored.getFluid())
{
return fluidTank.drain(resource.amount, doDrain);
}
@@ -48,7 +48,7 @@ public class TileEntityDynamicValve extends TileEntityDynamicTank implements IFl
@Override
public FluidStack drain(ForgeDirection from, int maxDrain, boolean doDrain)
{
if(fluidTank.dynamicTank.structure != null)
if(structure != null)
{
return fluidTank.drain(maxDrain, doDrain);
}