From 2fcc4dd24b91db32fa147154b892a9d8c35afeaf Mon Sep 17 00:00:00 2001 From: Treeku Date: Mon, 7 Apr 2014 04:15:53 +0100 Subject: [PATCH] Cooldowns only added if they are more than a 1 sec It's probably not worth it otherwise. --- src/services/command/CommandService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/command/CommandService.java b/src/services/command/CommandService.java index 9e8ce4ed..9884af7a 100644 --- a/src/services/command/CommandService.java +++ b/src/services/command/CommandService.java @@ -308,7 +308,9 @@ public class CommandService implements INetworkDispatch { } public void processCommand(CreatureObject actor, SWGObject target, BaseSWGCommand command, int actionCounter, String commandArgs) { - actor.addCooldown(command.getCooldownGroup(), command.getCooldown()); + if (command.getCooldown() > (float) 1) { + actor.addCooldown(command.getCooldownGroup(), command.getCooldown()); + } if (command instanceof CombatCommand) { processCombatCommand(actor, target, (CombatCommand) command, actionCounter, commandArgs);