forked from Upstream/mmocore
!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 {
|
public class CachedModifier {
|
||||||
private final long date = System.currentTimeMillis();
|
private final long date = System.currentTimeMillis();
|
||||||
private final double value;
|
private final int value;
|
||||||
|
|
||||||
public CachedModifier(double value) {
|
public CachedModifier(double value) {
|
||||||
this.value = value;
|
this.value = (int) value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isTimedOut() {
|
public boolean isTimedOut() {
|
||||||
return date + 1000 * 60 < System.currentTimeMillis();
|
return date + 1000 * 60 < System.currentTimeMillis();
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getValue() {
|
public int getValue() {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user