fixed weird issue

This commit is contained in:
GameHerobrine 2023-01-12 13:05:53 +03:00
parent 08a9f6f77e
commit 629a044053

View file

@ -460,7 +460,7 @@ class PlayerAPI{
public function getByEID($eid){
$eid = (int) $eid;
$CID = $this->server->query("SELECT ip,port FROM players WHERE EID = '" . $eid . "';", true);
$CID = PocketMinecraftServer::clientID($CID["ip"], $CID["port"]);
$CID = is_array($CID) ? PocketMinecraftServer::clientID($CID["ip"], $CID["port"]) : false;
if(isset($this->server->clients[$CID])){
return $this->server->clients[$CID];
}
@ -511,4 +511,4 @@ class PlayerAPI{
$data->save();
}
}
}
}