fixed invalid variable access

This commit is contained in:
GameHerobrine 2024-01-09 08:28:49 +03:00 • committed by GitHub
parent 8684e3092a
commit 50c0bf8104
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -480,7 +480,7 @@ class PlayerAPI{
}
$this->server->query("DELETE FROM players WHERE name = '" . $player->username . "';");
$this->server->api->entity->remove($player->eid);
unset($player->level->players[$this->CID]);
unset($player->level->players[$player->CID]);
if($player->entity instanceof Entity){
unset($player->entity->player);
//unset($player->entity);