Entity: Make fall distance explicit float to shut a PhpStorm bug up

This commit is contained in:
Dylan K. Taylor 2018-01-18 16:52:17 +00:00
parent 857b63ba8f
commit 3520dafd29

View File

@ -522,7 +522,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
assert(!is_nan($this->x) and !is_infinite($this->x) and !is_nan($this->y) and !is_infinite($this->y) and !is_nan($this->z) and !is_infinite($this->z));
$this->fallDistance = $this->namedtag->getFloat("FallDistance", 0);
$this->fallDistance = $this->namedtag->getFloat("FallDistance", 0.0);
$this->fireTicks = $this->namedtag->getShort("Fire", 0);
if($this->isOnFire()){