mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 11:24:11 +01:00
SPIGOT-6768: Remove upper bound on setFreezeTicks
By: md_5 <git@md-5.net>
This commit is contained in:
parent
ab1a1deb6b
commit
0136af37a5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue