mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-06 16:27:59 +01:00
Only remove boost if the time is not 0
This commit is contained in:
parent
ede05c85eb
commit
66e6b1451e
@ -52,7 +52,7 @@ public class BoostMultiplier {
|
|||||||
|
|
||||||
public boolean isValid(CurrencyType type) {
|
public boolean isValid(CurrencyType type) {
|
||||||
boolean valid = time > System.currentTimeMillis();
|
boolean valid = time > System.currentTimeMillis();
|
||||||
if (!valid) {
|
if (time != 0L && !valid) {
|
||||||
map.remove(type);
|
map.remove(type);
|
||||||
time = 0L;
|
time = 0L;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user