Fix game.users for v12
This commit is contained in:
parent
5cf7dda76c
commit
d30226cb33
@ -166,8 +166,8 @@ export class Misc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static firstConnectedGM() {
|
static firstConnectedGM() {
|
||||||
if (typeof(game.users) == "object") {
|
if (game.users?.activeGM) {
|
||||||
return game.users.find(u => u.isGM && u.active);
|
return game.users.activeGM
|
||||||
}
|
}
|
||||||
return game.users.sort(Misc.ascending(u => u.id)).find(u => u.isGM && u.active);
|
return game.users.sort(Misc.ascending(u => u.id)).find(u => u.isGM && u.active);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user