- cout << "player \"" << player.entity->Name() << "\" left" << endl;
- player.entity->Kill();
- player.entity->UnRef();
- player.entity = nullptr;
- player.chunks = nullptr;
+ cout << "player \"" << player->Name() << "\" left" << endl;
+ player->GetEntity().Kill();
+ player->GetEntity().UnRef();
+ player = nullptr;