Fixed kicked for flying when walking on lily pads (#7)

Add an optional extended description…
This commit is contained in:
Dylan K. Taylor 2016-10-03 09:17:50 +01:00 committed by GitHub
parent 535e1a0eb4
commit 2b6d058760
2 changed files with 6 additions and 17 deletions

View File

@ -21,9 +21,6 @@
namespace pocketmine\block; namespace pocketmine\block;
abstract class Flowable extends Transparent{ abstract class Flowable extends Transparent{
public function canBeFlowedInto(){ public function canBeFlowedInto(){
@ -42,7 +39,7 @@ abstract class Flowable extends Transparent{
return false; return false;
} }
public function getBoundingBox(){ protected function recalculateBoundingBox(){
return null; return null;
} }
} }

View File

@ -35,10 +35,6 @@ class WaterLily extends Flowable{
$this->meta = $meta; $this->meta = $meta;
} }
public function isSolid(){
return false;
}
public function getName(){ public function getName(){
return "Lily Pad"; return "Lily Pad";
} }
@ -47,18 +43,14 @@ class WaterLily extends Flowable{
return 0.6; return 0.6;
} }
public function canPassThrough(){
return true;
}
protected function recalculateBoundingBox(){ protected function recalculateBoundingBox(){
return new AxisAlignedBB( return new AxisAlignedBB(
$this->x, $this->x + 0.0625,
$this->y, $this->y,
$this->z, $this->z + 0.0625,
$this->x, $this->x + 0.9375,
$this->y + 0.0625, $this->y + 0.015625,
$this->z $this->z + 0.9375
); );
} }