From 860f72351831eca9accf5b83a840ccbfa9be4657 Mon Sep 17 00:00:00 2001 From: wrewolf Date: Fri, 10 Jan 2014 09:43:31 +0300 Subject: [PATCH] Update Water.php Fix Remove for Left Waters --- src/material/block/liquid/Water.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/material/block/liquid/Water.php b/src/material/block/liquid/Water.php index 1959fe78..0efdc40d 100644 --- a/src/material/block/liquid/Water.php +++ b/src/material/block/liquid/Water.php @@ -119,6 +119,10 @@ class WaterBlock extends LiquidBlock{ if($sb instanceof WaterBlock){ $tlevel = $sb->meta & 0x07; if($tlevel != 0x00){ + for ($s = 0; $s <= 5; $s++) { + $ssb = $sb->getSide($s); + ServerAPI::request()->api->block->scheduleBlockUpdate(new Position($ssb, 0, 0, $this->level), 10, BLOCK_UPDATE_NORMAL); + } $this->level->setBlock($sb, new AirBlock(), false, false, true); } } @@ -126,6 +130,10 @@ class WaterBlock extends LiquidBlock{ if($b instanceof WaterBlock){ $tlevel = $b->meta & 0x07; if($tlevel != 0x00){ + for ($s = 0; $s <= 5; $s++) { + $ssb = $sb->getSide($s); + ServerAPI::request()->api->block->scheduleBlockUpdate(new Position($ssb, 0, 0, $this->level), 10, BLOCK_UPDATE_NORMAL); + } $this->level->setBlock($b, new AirBlock(), false, false, true); } }