diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftFishHook.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftFishHook.java index b1baf21dd3..bee31ee654 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftFishHook.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftFishHook.java @@ -50,8 +50,8 @@ public class CraftFishHook extends CraftProjectile implements FishHook { @Override public void setMaxWaitTime(int maxWaitTime) { EntityFishingHook hook = getHandle(); - Validate.isTrue(maxWaitTime >= 0 && maxWaitTime >= this.getMinWaitTime(), "The maximum wait time should higher than 0 and the minimum wait time."); - hook.minWaitTime = maxWaitTime; + Validate.isTrue(maxWaitTime >= 0 && maxWaitTime >= this.getMinWaitTime(), "The maximum wait time should be higher than or equal to 0 and the minimum wait time."); + hook.maxWaitTime = maxWaitTime; } @Override