SPIGOT-6768: Remove upper bound on setFreezeTicks

This commit is contained in:
md_5 2021-10-23 18:29:53 +11:00
parent f0f801e58e
commit fd50041d32
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -585,7 +585,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
@Override @Override
public void setFreezeTicks(int ticks) { 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); getHandle().setTicksFrozen(ticks);
} }