Make HeatUtils not take unnecessary arguments.
This commit is contained in:
parent
d4f48401d3
commit
ccf7a37b22
4 changed files with 4 additions and 5 deletions
|
@ -110,7 +110,7 @@ public class PartHeatTransmitter extends PartTransmitter<HeatNetwork> implements
|
||||||
@Override
|
@Override
|
||||||
public double[] simulateHeat()
|
public double[] simulateHeat()
|
||||||
{
|
{
|
||||||
return HeatUtils.simulate(this, Coord4D.get(tile()), world());
|
return HeatUtils.simulate(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -9,7 +9,7 @@ import net.minecraftforge.common.util.ForgeDirection;
|
||||||
|
|
||||||
public class HeatUtils
|
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};
|
double heatTransferred[] = new double[]{0,0};
|
||||||
for(ForgeDirection side : ForgeDirection.VALID_DIRECTIONS)
|
for(ForgeDirection side : ForgeDirection.VALID_DIRECTIONS)
|
||||||
|
|
|
@ -5,7 +5,6 @@ import java.util.ArrayList;
|
||||||
import mekanism.api.Coord4D;
|
import mekanism.api.Coord4D;
|
||||||
import mekanism.api.IHeatTransfer;
|
import mekanism.api.IHeatTransfer;
|
||||||
import mekanism.api.MekanismConfig.generators;
|
import mekanism.api.MekanismConfig.generators;
|
||||||
import mekanism.api.transmitters.IGridTransmitter;
|
|
||||||
import mekanism.common.Mekanism;
|
import mekanism.common.Mekanism;
|
||||||
import mekanism.common.base.ISustainedData;
|
import mekanism.common.base.ISustainedData;
|
||||||
import mekanism.common.util.ChargeUtils;
|
import mekanism.common.util.ChargeUtils;
|
||||||
|
@ -413,7 +412,7 @@ public class TileEntityHeatGenerator extends TileEntityGenerator implements IFlu
|
||||||
transferHeatTo(-heatLost);
|
transferHeatTo(-heatLost);
|
||||||
setEnergy(getEnergy() + workDone);
|
setEnergy(getEnergy() + workDone);
|
||||||
}
|
}
|
||||||
return HeatUtils.simulate(this, Coord4D.get(this), worldObj);
|
return HeatUtils.simulate(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -258,7 +258,7 @@ public class TileEntityReactorPort extends TileEntityReactorBlock implements IFl
|
||||||
@Override
|
@Override
|
||||||
public double[] simulateHeat()
|
public double[] simulateHeat()
|
||||||
{
|
{
|
||||||
return HeatUtils.simulate(this, Coord4D.get(this), worldObj);
|
return HeatUtils.simulate(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue