Skip to content

Commit

Permalink
Fix heated flooring only removing ice.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiljacken committed Aug 15, 2013
1 parent 079bdfd commit 153dbe0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void updateEntity()
{
int y = yCoord + yOff;
int blockId = worldObj.getBlockId(x, y, z);
int newBlockId = 0;
int newBlockId = -1;

// TODO: Make meltable blocks configurable via IMC
if (blockId == Block.snow.blockID)
Expand All @@ -72,7 +72,7 @@ else if (blockId == Block.ice.blockID)
newBlockId = Block.waterMoving.blockID;
}

if (newBlockId != 0)
if (newBlockId != -1)
{
worldObj.setBlock(x, y, z, newBlockId, 0, 3);
didWork = true;
Expand Down

0 comments on commit 153dbe0

Please sign in to comment.