Fixed classic water for the onFlow update.

This commit is contained in:
sk89q 2010-11-19 21:02:54 -08:00
parent fc81a7034e
commit 8983d7bc84

View File

@ -600,9 +600,9 @@ public boolean onFlow(Block blockFrom, Block blockTo) {
} }
if (classicWater && isWater) { if (classicWater && isWater) {
int blockBelow = etc.getServer().getBlockIdAt(blockFrom.getX(), blockFrom.getY(), blockFrom.getZ()); int blockBelow = etc.getServer().getBlockIdAt(blockFrom.getX(), blockFrom.getY() - 1, blockFrom.getZ());
if (blockBelow != 0 && blockBelow != 8 && blockBelow != 9) { if (blockBelow != 0 && blockBelow != 8 && blockBelow != 9) {
etc.getServer().setBlockAt(9, blockFrom.getX(), blockFrom.getY() + 1, blockFrom.getZ()); etc.getServer().setBlockAt(9, blockFrom.getX(), blockFrom.getY(), blockFrom.getZ());
return false; return false;
} }
} }