mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Fix for setting generator output when ethylene already in tank when placed
This commit is contained in:
1 parent
dcf7d7772a
commit
d41fec6031
1 file changed
+6
@@ -312,6 +312,12 @@ public class TileEntityGasGenerator extends TileEntityGenerator implements IGasH
|
||||
if(itemStack.stackTagCompound.hasKey("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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user