.
This commit is contained in:
parent
f7c6588335
commit
fc6fbcb560
1 changed files with 7 additions and 12 deletions
|
@ -88,7 +88,7 @@ public class TileEntityPump extends TileEntityElectricityReceiver implements IPa
|
||||||
{
|
{
|
||||||
super.updateEntity();
|
super.updateEntity();
|
||||||
|
|
||||||
if (!this.worldObj.isRemote)
|
if (!this.worldObj.isRemote && !this.isDisabled())
|
||||||
{
|
{
|
||||||
// consume/give away stored units
|
// consume/give away stored units
|
||||||
this.chargeUp();
|
this.chargeUp();
|
||||||
|
@ -195,22 +195,17 @@ public class TileEntityPump extends TileEntityElectricityReceiver implements IPa
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
else if ((LiquidHandler.getFromBlockID(worldObj.getBlockId(x, y, z)) == null || LiquidHandler.getFromBlockID(worldObj.getBlockId(x, y, z)) == LiquidHandler.unkown))
|
||||||
if (this.isDisabled())
|
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
|
||||||
if ((LiquidHandler.getFromBlockID(worldObj.getBlockId(x, y, z)) == null || LiquidHandler.getFromBlockID(worldObj.getBlockId(x, y, z)) == LiquidHandler.unkown))
|
if (blockID == Block.waterMoving.blockID || blockID == Block.lavaMoving.blockID)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
else if (blockID == Block.waterStill.blockID || blockID == Block.waterStill.blockID)
|
||||||
if (blockID == Block.waterMoving.blockID || blockID == Block.lavaStill.blockID)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (blockID == Block.waterStill.blockID || blockID == Block.waterStill.blockID)
|
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue