mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
SPIGOT-6768: Remove upper bound on setFreezeTicks
This commit is contained in:
parent
f0f801e58e
commit
fd50041d32
1 changed files with 1 additions and 1 deletions
|
@ -585,7 +585,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||
|
||||
@Override
|
||||
public void setFreezeTicks(int ticks) {
|
||||
Preconditions.checkArgument(0 <= ticks && ticks <= getMaxFreezeTicks(), "Ticks cannot be less than 0 or greater than getMaxFreezeTicks");
|
||||
Preconditions.checkArgument(0 <= ticks, "Ticks cannot be less than 0");
|
||||
|
||||
getHandle().setTicksFrozen(ticks);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue