Return result directly on Server->getOfflinePlayer()

This commit is contained in:
Shoghi Cervantes 2014-10-19 02:49:58 +02:00
parent 2e6366868d
commit 3b47513439

View File

@ -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;