mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 20:28:31 +00:00
Entity: Make fall distance explicit float to shut a PhpStorm bug up
This commit is contained in:
parent
857b63ba8f
commit
3520dafd29
@ -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));
|
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);
|
$this->fireTicks = $this->namedtag->getShort("Fire", 0);
|
||||||
if($this->isOnFire()){
|
if($this->isOnFire()){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user