Merge pull request #2140 from Dannerick/MyDev1
Fix for setting generator output when ethylene already in tank when plac...
This commit is contained in:
commit
0e50db9d1a
1 changed files with 6 additions and 0 deletions
|
@ -312,6 +312,12 @@ public class TileEntityGasGenerator extends TileEntityGenerator implements IGasH
|
||||||
if(itemStack.stackTagCompound.hasKey("fuelTank"))
|
if(itemStack.stackTagCompound.hasKey("fuelTank"))
|
||||||
{
|
{
|
||||||
fuelTank.read(itemStack.stackTagCompound.getCompoundTag("fuelTank"));
|
fuelTank.read(itemStack.stackTagCompound.getCompoundTag("fuelTank"));
|
||||||
|
|
||||||
|
// update energy output based on any existing fuel in tank
|
||||||
|
FuelGas fuel = FuelHandler.getFuel(fuelTank.getGas().getGas());
|
||||||
|
if (fuel != null) {
|
||||||
|
output = fuel.energyPerTick * 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue