From bfc7fb4955cb79dd00a0ef94309e89a30bce7242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Fri, 16 Sep 2022 22:33:54 +0200 Subject: [PATCH] Migrate to Foundryvtt v10 --- module.json | 8 +++++--- src/socketlib.js | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/module.json b/module.json index b574595..bdc1a6e 100644 --- a/module.json +++ b/module.json @@ -1,10 +1,12 @@ { - "name": "socketlib", + "id": "socketlib", "title": "socketlib", "description": "A library for easier handling of foundry sockets", "version": "1.0.10", - "minimumCoreVersion" : "0.7.9", - "compatibleCoreVersion" : "9", + "compatibility": { + "minimum": "10", + "verified": "10" + }, "library": true, "authors": [ { diff --git a/src/socketlib.js b/src/socketlib.js index f6a785a..ccfff19 100644 --- a/src/socketlib.js +++ b/src/socketlib.js @@ -307,7 +307,7 @@ function isResponsibleGM() { if (!game.user.isGM) return false; const connectedGMs = game.users.filter(isActiveGM); - return !connectedGMs.some(other => other.data._id < game.user.data._id); + return !connectedGMs.some(other => other.id < game.user.id); } function isActiveGM(user) {