SPIGOT-7549: ServerTickManager#setTickRate incorrect Precondition

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2023-12-18 18:45:09 +11:00
parent a92362c927
commit 1b81fe827e

View file

@ -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);
}