mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +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 = "";
|
||||
}
|
||||
|
||||
if($xuid === ""){
|
||||
if($xuid === "" or !is_string($xuid)){
|
||||
if($signedByMojang){
|
||||
$this->server->getLogger()->error($this->getName() . " should have an XUID, but none found");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user