mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-18 07:07:43 +01:00
Fixed classic water for the onFlow update.
This commit is contained in:
parent
fc81a7034e
commit
8983d7bc84
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user