mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
avoid crashes when XUID is null
This commit is contained in:
@ -1945,7 +1945,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
$xuid = "";
|
||||
}
|
||||
|
||||
if($xuid === ""){
|
||||
if($xuid === "" or !is_string($xuid)){
|
||||
if($signedByMojang){
|
||||
$this->server->getLogger()->error($this->getName() . " should have an XUID, but none found");
|
||||
}
|
||||
|
Reference in New Issue
Block a user