mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-09-18 21:54:50 +00:00
#769: Fix FishHook.maxWaitTime
This commit is contained in:
parent
bc6a175eff
commit
009f0ba0ef
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue