Trying to patch up some junky code in the management server

This commit is contained in:
ceikry 2021-08-10 00:02:47 -05:00
parent 5c8774de89
commit d23b53ba6f
8 changed files with 18 additions and 22 deletions

View file

@ -49,7 +49,7 @@ public final class PunishmentStorage {
return;
}
long end = Long.MAX_VALUE;
if (duration != -1l && duration != 0L) {
if (duration != -1L && duration != 0L) {
end = System.currentTimeMillis() + duration;
} else if (duration == 0L) {
end = 0L;