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