Now only boiling source blocks
This commit is contained in:
parent
f2275bf689
commit
c37abd0ee5
2 changed files with 3 additions and 3 deletions
|
@ -123,7 +123,7 @@ public class BlockFirebox extends BlockRI
|
|||
|
||||
int blockIDAbove = world.getBlockId(x, y + 1, z);
|
||||
|
||||
if (blockIDAbove == Block.waterStill.blockID || blockIDAbove == Block.waterMoving.blockID)
|
||||
if (blockIDAbove == Block.waterStill.blockID )
|
||||
{
|
||||
for (int i = 0; i < 4; i++)
|
||||
world.spawnParticle("bubble", xDisplace + (par5Random.nextFloat() - 0.5), yDisplace + 1.5, zDisplace + (par5Random.nextFloat() - 0.5), 0.0D, 0.05D, 0.0D);
|
||||
|
|
|
@ -58,7 +58,7 @@ public class TileFirebox extends TileExternalInventory implements IPacketSender,
|
|||
worldObj.setBlock(xCoord, yCoord + 1, zCoord, Block.fire.blockID);
|
||||
}
|
||||
|
||||
if (blockID == Block.waterStill.blockID || blockID == Block.waterMoving.blockID)
|
||||
if (blockID == Block.waterStill.blockID)
|
||||
{
|
||||
boilEnergy += POWER / 20;
|
||||
|
||||
|
@ -66,7 +66,7 @@ public class TileFirebox extends TileExternalInventory implements IPacketSender,
|
|||
{
|
||||
if (FluidRegistry.getFluid("steam") != null)
|
||||
MinecraftForge.EVENT_BUS.post(new BoilEvent(worldObj, new Vector3(this).translate(0, 1, 0), new FluidStack(FluidRegistry.WATER, FluidContainerRegistry.BUCKET_VOLUME), new FluidStack(FluidRegistry.getFluid("steam"), FluidContainerRegistry.BUCKET_VOLUME), 2));
|
||||
|
||||
|
||||
worldObj.setBlock(xCoord, yCoord + 1, zCoord, 0);
|
||||
boilEnergy = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue