mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Fixed kicked for flying when walking on lily pads (#7)
Add an optional extended description…
This commit is contained in:
parent
535e1a0eb4
commit
2b6d058760
@ -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;
|
||||
}
|
||||
}
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user