mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Cobweb, Ladders and Water won't cause fall damage
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user