diff --git a/src/engine/world/instances.ts b/src/engine/world/instances.ts index 74584afbb..ffc01e509 100644 --- a/src/engine/world/instances.ts +++ b/src/engine/world/instances.ts @@ -526,7 +526,7 @@ export class WorldInstance { public removePlayer(player: Player): void { this.players.delete(player.username); - if(this.instanceId !== null && this.players.size === 0) { + if(this.instanceId !== activeWorld.globalInstance.instanceId && this.players.size === 0) { this.chunkModifications.clear(); const instancedNpcs = activeWorld.findNpcsByInstance(this.instanceId); instancedNpcs?.forEach(npc => activeWorld.deregisterNpc(npc));