Cobweb, Ladders and Water won't cause fall damage

This commit is contained in:
Shoghi Cervantes
2014-09-16 10:52:00 +02:00
parent c4a0c759dc
commit 3ba099b309
4 changed files with 22 additions and 1 deletions

View File

@ -25,6 +25,7 @@ use pocketmine\item\Item;
use pocketmine\level\Level;
use pocketmine\math\AxisAlignedBB;
use pocketmine\Player;
use pocketmine\entity\Entity;
class Ladder extends Transparent{
public function __construct($meta = 0){
@ -34,6 +35,10 @@ class Ladder extends Transparent{
$this->hardness = 2;
}
public function onEntityCollide(Entity $entity){
$entity->fallDistance = 0;
}
public function getBoundingBox(){
$f = 0.125;