mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
SPIGOT-7549: ServerTickManager#setTickRate incorrect Precondition
This commit is contained in:
parent
9d7f49b010
commit
f03fc3aa3c
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ final class CraftServerTickManager implements ServerTickManager {
|
|||
|
||||
@Override
|
||||
public void setTickRate(final float tickRate) {
|
||||
Preconditions.checkArgument(tickRate > 1 && tickRate < 10_000, "The given tick rate must not be less than one");
|
||||
Preconditions.checkArgument(tickRate >= 1.0F && tickRate <= 10_000.0F, "The given tick rate must not be less than 1.0 or greater than 10,000.0");
|
||||
manager.setTickRate(tickRate);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue