Make HeatUtils not take unnecessary arguments.

This commit is contained in:
Ben Spiers 2014-12-27 21:08:18 +00:00
parent d4f48401d3
commit ccf7a37b22
4 changed files with 4 additions and 5 deletions

View file

@ -110,7 +110,7 @@ public class PartHeatTransmitter extends PartTransmitter<HeatNetwork> implements
@Override
public double[] simulateHeat()
{
return HeatUtils.simulate(this, Coord4D.get(tile()), world());
return HeatUtils.simulate(this);
}
@Override

View file

@ -9,7 +9,7 @@ import net.minecraftforge.common.util.ForgeDirection;
public class HeatUtils
{
public static double[] simulate(IHeatTransfer source, Coord4D pos, World world)
public static double[] simulate(IHeatTransfer source)
{
double heatTransferred[] = new double[]{0,0};
for(ForgeDirection side : ForgeDirection.VALID_DIRECTIONS)

View file

@ -5,7 +5,6 @@ import java.util.ArrayList;
import mekanism.api.Coord4D;
import mekanism.api.IHeatTransfer;
import mekanism.api.MekanismConfig.generators;
import mekanism.api.transmitters.IGridTransmitter;
import mekanism.common.Mekanism;
import mekanism.common.base.ISustainedData;
import mekanism.common.util.ChargeUtils;
@ -413,7 +412,7 @@ public class TileEntityHeatGenerator extends TileEntityGenerator implements IFlu
transferHeatTo(-heatLost);
setEnergy(getEnergy() + workDone);
}
return HeatUtils.simulate(this, Coord4D.get(this), worldObj);
return HeatUtils.simulate(this);
}
@Override

View file

@ -258,7 +258,7 @@ public class TileEntityReactorPort extends TileEntityReactorBlock implements IFl
@Override
public double[] simulateHeat()
{
return HeatUtils.simulate(this, Coord4D.get(this), worldObj);
return HeatUtils.simulate(this);
}
@Override