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