mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Gas Generator fixes
This commit is contained in:
1 parent
ba8e5e198b
commit
f84e5293bf
1 file changed
+4
-4
@@ -47,7 +47,7 @@ public class TileEntityGasGenerator extends TileEntityGenerator implements IGasH
|
||||
public void onUpdate()
|
||||
{
|
||||
super.onUpdate();
|
||||
|
||||
|
||||
if(!worldObj.isRemote)
|
||||
{
|
||||
ChargeUtils.charge(1, this);
|
||||
@@ -81,10 +81,10 @@ public class TileEntityGasGenerator extends TileEntityGenerator implements IGasH
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
boolean operate = canOperate();
|
||||
|
||||
if(operate && getEnergy() < getMaxEnergy())
|
||||
if(operate && getEnergy()+generationRate < getMaxEnergy())
|
||||
{
|
||||
setActive(true);
|
||||
|
||||
@@ -99,7 +99,7 @@ public class TileEntityGasGenerator extends TileEntityGenerator implements IGasH
|
||||
|
||||
int toUse = getToUse();
|
||||
|
||||
output = generationRate*getToUse()*2;
|
||||
output = Math.max(general.FROM_H2*2, generationRate*getToUse()*2);
|
||||
|
||||
int total = burnTicks + fuelTank.getStored()*maxBurnTicks;
|
||||
total -= toUse;
|
||||
|
||||
Reference in new issue
Block a user