mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
ExperienceOrb: fixed wrong condition
This commit is contained in:
parent
854f851525
commit
a27c9409f1
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user