constructor can replace liquids

This commit is contained in:
Raoul Van den Berge
2016-02-01 23:50:51 +01:00
parent 60710fecfa
commit eadfc0956c
2 changed files with 2 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ public class TileCable extends TileBase
public boolean isEnabled() public boolean isEnabled()
{ {
// @TODO: Fix going through blocks
return !worldObj.isBlockPowered(pos); return !worldObj.isBlockPowered(pos);
} }

View File

@@ -31,7 +31,7 @@ public class TileConstructor extends TileMachine implements ICompareSetting
{ {
BlockPos front = pos.offset(getDirection()); BlockPos front = pos.offset(getDirection());
if (worldObj.isAirBlock(front) && inventory.getStackInSlot(0) != null) if ((worldObj.isAirBlock(front) || worldObj.getBlockState(front).getBlock().getMaterial().isLiquid()) && inventory.getStackInSlot(0) != null)
{ {
ItemStack took = getController().take(inventory.getStackInSlot(0).copy(), compare); ItemStack took = getController().take(inventory.getStackInSlot(0).copy(), compare);