13
0
geforkt von Mirrors/Paper

#769: Fix FishHook.maxWaitTime

By: Airtheon <Airtheonthesalion@gmail.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2020-11-09 18:21:10 +11:00
Ursprung 9616dbb128
Commit 2dfcf06f4a

Datei anzeigen

@ -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