mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-23 00:21:31 +01:00
Text micro-optimisation
This commit is contained in:
parent
79fc7c426b
commit
2ea94aedc9
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user