Browse Source

Bug: Fixed an issue with objects not being completely removed properly

tags/v0.10.6^2
Shaun 2 years ago
parent
commit
0951dd7097
2 changed files with 3 additions and 0 deletions
  1. +2
    -0
      src/server/components/portal/sendObjToZone.js
  2. +1
    -0
      src/server/objects/objects.js

+ 2
- 0
src/server/components/portal/sendObjToZone.js View File

@@ -51,6 +51,8 @@ const sendObjToZone = async ({ obj, invokingObj, zoneName, toPos, toRelativePos
});

const simpleObj = obj.getSimple(true, false, true);
simpleObj.destroyed = false;
simpleObj.forceDestroy = false;

rezoneManager.stageRezone(simpleObj, zoneName);



+ 1
- 0
src/server/objects/objects.js View File

@@ -343,6 +343,7 @@ module.exports = {
//When objects are sent to other zones, we destroy them immediately (thhrough sendObjToZone)
// In these cases, we DO need to remove it
if (o.forceDestroy) {
objects.splice(i, 1);
i--;
len--;
continue;


Loading…
Cancel
Save