mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-17 23:01:01 +01:00
SPIGOT-7549: ServerTickManager#setTickRate incorrect Precondition
By: md_5 <git@md-5.net>
This commit is contained in:
parent
a92362c927
commit
1b81fe827e
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…
Reference in a new issue