[chore] Fix comments/logs

b65da795ef0d75d5841b2dbfaf24fd8f07988ba6

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -2Ignore whitespace
public/scripts/world-info.js+1 -2
@@ -316,7 +316,6 @@ class WorldInfoBuffer {
316 * @returns {object|undefined} the external version if the entry is forcefully activated, undefined otherwise316 * @returns {object|undefined} the external version if the entry is forcefully activated, undefined otherwise
317 */317 */
318 getExternallyActivated(entry) {318 getExternallyActivated(entry) {
319 // Entries could be copied with structuredClone, so we need to compare them by string representation
320 return WorldInfoBuffer.externalActivations.get(`${entry.world}.${entry.uid}`);319 return WorldInfoBuffer.externalActivations.get(`${entry.world}.${entry.uid}`);
321 }320 }
322321
@@ -870,7 +869,7 @@ export function setWorldInfoSettings(settings, data) {
870 eventSource.on(event_types.WORLDINFO_FORCE_ACTIVATE, (entries) => {869 eventSource.on(event_types.WORLDINFO_FORCE_ACTIVATE, (entries) => {
871 for (const entry of entries) {870 for (const entry of entries) {
872 if (!Object.hasOwn(entry, 'world') || !Object.hasOwn(entry, 'uid')) {871 if (!Object.hasOwn(entry, 'world') || !Object.hasOwn(entry, 'uid')) {
873 console.error('WORLDINFO_FORCE_ACTIVATE requires all entries to have both world and uid fields, entry IGNORED');872 console.error('[WI] WORLDINFO_FORCE_ACTIVATE requires all entries to have both world and uid fields, entry IGNORED', entry);
874 } else {873 } else {
875 WorldInfoBuffer.externalActivations.set(`${entry.world}.${entry.uid}`, entry);874 WorldInfoBuffer.externalActivations.set(`${entry.world}.${entry.uid}`, entry);
876 }875 }