mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2025-01-14 08:11:23 +01:00
!Switched back to ints for mm compatibility
This commit is contained in:
parent
df24d47c93
commit
6f5049ff6a
@ -80,17 +80,17 @@ public class PlayerSkillData {
|
||||
|
||||
public class CachedModifier {
|
||||
private final long date = System.currentTimeMillis();
|
||||
private final double value;
|
||||
private final int value;
|
||||
|
||||
public CachedModifier(double value) {
|
||||
this.value = value;
|
||||
this.value = (int) value;
|
||||
}
|
||||
|
||||
public boolean isTimedOut() {
|
||||
return date + 1000 * 60 < System.currentTimeMillis();
|
||||
}
|
||||
|
||||
public double getValue() {
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user