When changing the measurement mode via a keybinding send the updated ruler state to other players immediately (fixes #152)

This commit is contained in:
Manuel Vögele
2022-02-09 10:51:19 +01:00
parent 443cfd4317
commit f59b0f9d2d
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -202,6 +202,12 @@ export function extendRuler() {
if (measureImmediately)
ruler.measure(destination, options);
}
dragRulerSendState() {
game.user.broadcastActivity({
ruler: this.toJSON()
});
}
}
Ruler = DragRulerRuler;