|
@@ -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); |
|
|