From 6f5049ff6a8a6077af71ad4bfc0b844db208a072 Mon Sep 17 00:00:00 2001 From: Indyuce Date: Sat, 4 Apr 2020 12:05:58 +0200 Subject: [PATCH] !Switched back to ints for mm compatibility --- .../net/Indyuce/mmocore/api/player/PlayerSkillData.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/Indyuce/mmocore/api/player/PlayerSkillData.java b/src/main/java/net/Indyuce/mmocore/api/player/PlayerSkillData.java index fef1b5df..85387d43 100644 --- a/src/main/java/net/Indyuce/mmocore/api/player/PlayerSkillData.java +++ b/src/main/java/net/Indyuce/mmocore/api/player/PlayerSkillData.java @@ -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; } }