mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-10 21:45:35 +00:00
Return result directly on Server->getOfflinePlayer()
This commit is contained in:
parent
2e6366868d
commit
3b47513439
@ -643,7 +643,7 @@ class Server{
|
|||||||
$result = $this->getPlayerExact($name);
|
$result = $this->getPlayerExact($name);
|
||||||
|
|
||||||
if($result === null){
|
if($result === null){
|
||||||
$result = new OfflinePlayer($this, $name);
|
return new OfflinePlayer($this, $name);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user