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

@ -22,6 +22,7 @@
namespace pocketmine\block;
use pocketmine\item\Item;
use pocketmine\entity\Entity;
class Cobweb extends Flowable{
public function __construct(){
@ -31,6 +32,10 @@ class Cobweb extends Flowable{
$this->hardness = 25;
}
public function onEntityCollide(Entity $entity){
$entity->fallDistance = 0;
}
public function getDrops(Item $item){
return [];
}