mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
fixed invalid variable access
This commit is contained in:
parent
8684e3092a
commit
50c0bf8104
1 changed files with 1 additions and 1 deletions
|
|
@ -480,7 +480,7 @@ class PlayerAPI{
|
||||||
}
|
}
|
||||||
$this->server->query("DELETE FROM players WHERE name = '" . $player->username . "';");
|
$this->server->query("DELETE FROM players WHERE name = '" . $player->username . "';");
|
||||||
$this->server->api->entity->remove($player->eid);
|
$this->server->api->entity->remove($player->eid);
|
||||||
unset($player->level->players[$this->CID]);
|
unset($player->level->players[$player->CID]);
|
||||||
if($player->entity instanceof Entity){
|
if($player->entity instanceof Entity){
|
||||||
unset($player->entity->player);
|
unset($player->entity->player);
|
||||||
//unset($player->entity);
|
//unset($player->entity);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue