mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-02 11:22:01 +01:00
#769: Fix FishHook.maxWaitTime
By: Airtheon <Airtheonthesalion@gmail.com>
This commit is contained in:
parent
9616dbb128
commit
2dfcf06f4a
@ -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…
Reference in New Issue
Block a user