Updated reflowing of water on sponge removal/deactivation

This commit is contained in:
DarkLiKally 2011-02-22 20:56:57 +01:00
parent 8810647bb8
commit edd2f460a0

View File

@ -652,8 +652,11 @@ private void addSpongeWater(World world, int ox, int oy, int oz) {
* @param oz
*/
private void setBlockToWater(World world, int ox, int oy, int oz) {
world.getBlockAt(ox, oy, oz)
.setTypeId( 8 );
Block block = world.getBlockAt(ox, oy, oz);
int id = block.getTypeId();
if (id == 0) {
block.setTypeId( 8 );
}
}
/**