diff --git a/src/pocketmine/block/Flowable.php b/src/pocketmine/block/Flowable.php index 3c380301e..65a86c69f 100644 --- a/src/pocketmine/block/Flowable.php +++ b/src/pocketmine/block/Flowable.php @@ -21,9 +21,6 @@ namespace pocketmine\block; - - - abstract class Flowable extends Transparent{ public function canBeFlowedInto(){ @@ -42,7 +39,7 @@ abstract class Flowable extends Transparent{ return false; } - public function getBoundingBox(){ + protected function recalculateBoundingBox(){ return null; } } \ No newline at end of file diff --git a/src/pocketmine/block/WaterLily.php b/src/pocketmine/block/WaterLily.php index ef15f56bd..b690e87e6 100644 --- a/src/pocketmine/block/WaterLily.php +++ b/src/pocketmine/block/WaterLily.php @@ -35,10 +35,6 @@ class WaterLily extends Flowable{ $this->meta = $meta; } - public function isSolid(){ - return false; - } - public function getName(){ return "Lily Pad"; } @@ -47,18 +43,14 @@ class WaterLily extends Flowable{ return 0.6; } - public function canPassThrough(){ - return true; - } - protected function recalculateBoundingBox(){ return new AxisAlignedBB( - $this->x, + $this->x + 0.0625, $this->y, - $this->z, - $this->x, - $this->y + 0.0625, - $this->z + $this->z + 0.0625, + $this->x + 0.9375, + $this->y + 0.015625, + $this->z + 0.9375 ); }