Remove deprecated data attributes

This commit is contained in:
2022-09-30 21:29:39 +02:00
parent 2a7f9cc52e
commit c75eef77b8

View File

@@ -38,7 +38,7 @@ class Socketlib {
console.error(`socketlib | Someone tried to register module '${moduleName}', but no module with that name is active. As a result the registration request has been ignored.`); console.error(`socketlib | Someone tried to register module '${moduleName}', but no module with that name is active. As a result the registration request has been ignored.`);
return undefined; return undefined;
} }
if (!module.data.socket) { if (!module.socket) {
console.error(`socketlib | Failed to register socket for module '${moduleName}'. Please set '"socket":true' in your manifset and restart foundry (you need to reload your world - simply reloading your browser won't do).`); console.error(`socketlib | Failed to register socket for module '${moduleName}'. Please set '"socket":true' in your manifset and restart foundry (you need to reload your world - simply reloading your browser won't do).`);
return undefined; return undefined;
} }
@@ -55,7 +55,7 @@ class Socketlib {
const existingSocket = this.system; const existingSocket = this.system;
if (existingSocket) if (existingSocket)
return existingSocket; return existingSocket;
if (!game.system.data.socket) { if (!game.system.socket) {
console.error(`socketlib | Failed to register socket for system '${systemId}'. Please set '"socket":true' in your manifest and restart foundry (you need to reload your world - simply reloading your browser won't do).`); console.error(`socketlib | Failed to register socket for system '${systemId}'. Please set '"socket":true' in your manifest and restart foundry (you need to reload your world - simply reloading your browser won't do).`);
} }
const newSocket = new SocketlibSocket(systemId, "system"); const newSocket = new SocketlibSocket(systemId, "system");