I was trying to investigate the bug that causes you to take damage when falling into one-block-deep water, and I came across the following in pocketmine\block\Water Code: public function onEntityCollide(Entity $entity){ $entity->resetFallDistance(); if($entity->fireTicks > 0){ $entity->extinguish(); } $entity->resetFallDistance(); } Why is it that $entity->resetFallDistance() is called twice?