Text micro-optimisation

This commit is contained in:
fullwall 2018-05-02 15:18:25 +08:00
parent 79fc7c426b
commit 2ea94aedc9
1 changed files with 1 additions and 2 deletions

View File

@ -145,8 +145,7 @@ public class Text extends Trait implements Runnable, Toggleable, Listener, Conve
}
cooldowns.remove(player.getUniqueId());
}
if (!sendText(player))
return;
sendText(player);
// Add a cooldown if the text was successfully sent
int secondsDelta = delay != -1 ? delay
: RANDOM.nextInt(Setting.TALK_CLOSE_MAXIMUM_COOLDOWN.asInt())