Skip to content

Commit 9912beb

Browse files
author
Tony Brar
committed
Use update instead of separate stasis and unstasis message
1 parent 771b05b commit 9912beb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ var commands = {
636636
if(ind>-1) {
637637
var time = new Date().getTime();
638638
gd.data.nodes[d.data].frozen = time;
639-
broadcast("stasis:"+d.data, gd);
639+
broadcast("update:"+d.data+",stasis,true", gd);
640640
}
641641
}
642642
}
@@ -836,7 +836,7 @@ var tick = function() {
836836
// check if its time to unfreeze the node
837837
if (node.frozen !== 0 && time - node.frozen >= GAMERULES.FREEZE_TIME) {
838838
node.frozen = 0;
839-
broadcast("unstasis:"+i, gd);
839+
broadcast("update:"+i+",stasis,false", gd);
840840
}
841841
}
842842
// if the same person controls all unit groups and nodes, they win

0 commit comments

Comments
 (0)