Browse Source

bug #1990

tags/v0.12.0.11^2
Shaun 1 year ago
parent
commit
edca72fb36
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/server/world/atlas.js

+ 4
- 1
src/server/world/atlas.js View File

@@ -87,8 +87,11 @@ module.exports = {
objects.removeObject(obj); objects.removeObject(obj);


const thread = getThreadFromId(obj.zoneId); const thread = getThreadFromId(obj.zoneId);
if (!thread)
if (!thread) {
callback();

return; return;
}


if (thread.instanced && (await gePlayerCountInThread(thread)) === 1) { if (thread.instanced && (await gePlayerCountInThread(thread)) === 1) {
this.removeObjectFromInstancedZone(thread, playerId, callback); this.removeObjectFromInstancedZone(thread, playerId, callback);


Loading…
Cancel
Save