Added flags to CommandTimer

This commit is contained in:
Obique
2020-03-21 12:17:52 -04:00
parent ec5fd0f1dc
commit 90fc5aab8d
2 changed files with 2 additions and 1 deletions

View File

@@ -170,6 +170,7 @@ public class CommandQueueService extends Service {
commandTimer.setCooldownMax((float) cooldownTime);
commandTimer.setCommandNameCrc(command.getCrc());
commandTimer.setSequenceId(counter);
commandTimer.addFlag(CommandTimer.CommandTimerFlag.COOLDOWN);
creature.sendSelf(commandTimer);
executor.execute((long) (cooldownTime * 1000), () -> activeCooldownGroups.remove(group));