avoid crashes when XUID is null

This commit is contained in:
Dylan K. Taylor 2018-05-05 12:45:13 +01:00
parent 396056c636
commit 38c3f00ef7

View File

@ -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");
}