Commits
Airtheon Thesalion authored and md_5 committed 009f0ba0efc
43 43 | } |
44 44 | |
45 45 | |
46 46 | public int getMaxWaitTime() { |
47 47 | return getHandle().maxWaitTime; |
48 48 | } |
49 49 | |
50 50 | |
51 51 | public void setMaxWaitTime(int maxWaitTime) { |
52 52 | EntityFishingHook hook = getHandle(); |
53 - | Validate.isTrue(maxWaitTime >= 0 && maxWaitTime >= this.getMinWaitTime(), "The maximum wait time should higher than 0 and the minimum wait time."); |
54 - | hook.minWaitTime = maxWaitTime; |
53 + | Validate.isTrue(maxWaitTime >= 0 && maxWaitTime >= this.getMinWaitTime(), "The maximum wait time should be higher than or equal to 0 and the minimum wait time."); |
54 + | hook.maxWaitTime = maxWaitTime; |
55 55 | } |
56 56 | |
57 57 | |
58 58 | public boolean getApplyLure() { |
59 59 | return getHandle().applyLure; |
60 60 | } |
61 61 | |
62 62 | |
63 63 | public void setApplyLure(boolean applyLure) { |
64 64 | getHandle().applyLure = applyLure; |