mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-09 11:31:49 +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{
|
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{
|
public function entityBaseTick(int $tickDiff = 1) : bool{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user