mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-23 12:20:05 +00:00
Initialize all members of all Entity-derived classes
Also moved some logic out of Mob into CombatNPC.
This commit is contained in:
@@ -57,8 +57,8 @@ void PlayerManager::removePlayer(CNSocket* key) {
|
||||
// save player to DB
|
||||
Database::updatePlayer(plr);
|
||||
|
||||
EntityRef ref = {key};
|
||||
// remove player visually and untrack
|
||||
EntityRef ref = {key};
|
||||
Chunking::removeEntityFromChunks(Chunking::getViewableChunks(plr->chunkPos), ref);
|
||||
Chunking::untrackEntity(plr->chunkPos, ref);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user