Text micro-optimisation

This commit is contained in:
fullwall 2018-05-02 15:18:25 +08:00
parent 79fc7c426b
commit 2ea94aedc9

View File

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