mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-18 23:27:35 +01:00
Updated reflowing of water on sponge removal/deactivation
This commit is contained in:
parent
8810647bb8
commit
edd2f460a0
@ -652,8 +652,11 @@ private void addSpongeWater(World world, int ox, int oy, int oz) {
|
|||||||
* @param oz
|
* @param oz
|
||||||
*/
|
*/
|
||||||
private void setBlockToWater(World world, int ox, int oy, int oz) {
|
private void setBlockToWater(World world, int ox, int oy, int oz) {
|
||||||
world.getBlockAt(ox, oy, oz)
|
Block block = world.getBlockAt(ox, oy, oz);
|
||||||
.setTypeId( 8 );
|
int id = block.getTypeId();
|
||||||
|
if (id == 0) {
|
||||||
|
block.setTypeId( 8 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user