v5.5.4 Beta #8
*Fixed pump debug, made it actually check for electricity and available liquid storage. *Made Electric Pump suck in water once each second.
This commit is contained in:
parent
f464d2143b
commit
587a3391ed
1 changed files with 2 additions and 2 deletions
|
@ -152,9 +152,9 @@ public class TileEntityElectricPump extends TileEntityElectricBlock implements I
|
|||
|
||||
public boolean suck(boolean take)
|
||||
{
|
||||
if(!worldObj.isRemote && worldObj.getWorldTime() % 1 == 0)
|
||||
if(!worldObj.isRemote && worldObj.getWorldTime() % 20 == 0)
|
||||
{
|
||||
if(/*electricityStored >= 100 && (liquidTank.getLiquid() == null || liquidTank.getLiquid().amount+LiquidContainerRegistry.BUCKET_VOLUME <= 10000)*/true)
|
||||
if(electricityStored >= 100 && (liquidTank.getLiquid() == null || liquidTank.getLiquid().amount+LiquidContainerRegistry.BUCKET_VOLUME <= 10000))
|
||||
{
|
||||
List<BlockWrapper> tempPumpList = Arrays.asList(recurringNodes.toArray(new BlockWrapper[recurringNodes.size()]));
|
||||
Collections.shuffle(tempPumpList);
|
||||
|
|
Loading…
Reference in a new issue