Migrate to Foundryvtt v10
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "socketlib",
|
"id": "socketlib",
|
||||||
"title": "socketlib",
|
"title": "socketlib",
|
||||||
"description": "A library for easier handling of foundry sockets",
|
"description": "A library for easier handling of foundry sockets",
|
||||||
"version": "1.0.10",
|
"version": "1.0.10",
|
||||||
"minimumCoreVersion" : "0.7.9",
|
"compatibility": {
|
||||||
"compatibleCoreVersion" : "9",
|
"minimum": "10",
|
||||||
|
"verified": "10"
|
||||||
|
},
|
||||||
"library": true,
|
"library": true,
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -307,7 +307,7 @@ function isResponsibleGM() {
|
|||||||
if (!game.user.isGM)
|
if (!game.user.isGM)
|
||||||
return false;
|
return false;
|
||||||
const connectedGMs = game.users.filter(isActiveGM);
|
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) {
|
function isActiveGM(user) {
|
||||||
|
|||||||
Reference in New Issue
Block a user