ExperienceOrb: fixed wrong condition

This commit is contained in:
Dylan K. Taylor 2019-01-20 12:30:24 +00:00
parent 854f851525
commit a27c9409f1

View File

@ -156,7 +156,7 @@ class ExperienceOrb extends Entity{
}
public function setTargetPlayer(?Human $player) : void{
$this->targetPlayerRuntimeId = $player ? $player->getId() : null;
$this->targetPlayerRuntimeId = $player !== null ? $player->getId() : null;
}
public function entityBaseTick(int $tickDiff = 1) : bool{