mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +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;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user