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

@ -21,6 +21,7 @@
namespace pocketmine\block;
use pocketmine\entity\Entity;
class StillWater extends Water{
public function __construct($meta = 0){
@ -28,4 +29,9 @@ class StillWater extends Water{
$this->hardness = 500;
}
public function onEntityCollide(Entity $entity){
$entity->fallDistance = 0;
$entity->extinguish();
}
}