Browse Source

test: undo this

tags/v0.12.0.16
Shaun 1 year ago
parent
commit
83ab998b7e
2 changed files with 4 additions and 1 deletions
  1. +4
    -0
      src/server/world/atlas.js
  2. +0
    -1
      src/server/world/instancer.js

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

@@ -103,6 +103,10 @@ module.exports = {
if (callback) if (callback)
callbackId = this.registerCallback(callback); callbackId = this.registerCallback(callback);


const simple = obj.getSimple(true);
if (!simple.name)
console.log(`Object has no name. Username: ${obj.auth?.username}`);

sendMessageToThread({ sendMessageToThread({
threadId: obj.zoneId, threadId: obj.zoneId,
msg: { msg: {


+ 0
- 1
src/server/world/instancer.js View File

@@ -339,7 +339,6 @@ module.exports = {
let obj = msg.obj; let obj = msg.obj;
obj = objects.find(o => o.serverId === obj.id); obj = objects.find(o => o.serverId === obj.id);
if (!obj) { if (!obj) {
console.log('No object found to remove', msg.obj.name);
//We should probably never reach this //We should probably never reach this
return; return;
} }


Loading…
Cancel
Save