Skip to content

Commit

Permalink
6.42.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Angeschossen committed Dec 23, 2023
1 parent 7555a78 commit f388521
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,7 @@ public long getTime() {
* @param time if 0, disables this cooldown
*/
public void setTime(long time) {
if (time < 0) {
throw new IllegalArgumentException("time can't be lower than 0");
}

this.time = time;
this.time = Math.max(time, 0); // all lower than 1 disables it
}

public enum ConfigType {
Expand Down

0 comments on commit f388521

Please sign in to comment.