diff --git a/pom.xml b/pom.xml
index 51c8094d..77207f2e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,7 +2,7 @@
4.0.0
net.Indyuce
MMOItems
- 5.2
+ 5.2.1
MMOItems
A great item solution for your RPG server.
diff --git a/src/main/java/net/Indyuce/mmoitems/api/player/PlayerStats.java b/src/main/java/net/Indyuce/mmoitems/api/player/PlayerStats.java
index 2ac8c806..c5ac048c 100644
--- a/src/main/java/net/Indyuce/mmoitems/api/player/PlayerStats.java
+++ b/src/main/java/net/Indyuce/mmoitems/api/player/PlayerStats.java
@@ -8,7 +8,6 @@ import org.bukkit.entity.Player;
import net.Indyuce.mmoitems.MMOItems;
import net.Indyuce.mmoitems.api.item.MMOItem;
-import net.Indyuce.mmoitems.stat.type.AttributeStat;
import net.Indyuce.mmoitems.stat.type.ItemStat;
import net.mmogroup.mmolib.api.player.MMOData;
import net.mmogroup.mmolib.api.stat.StatInstance;
@@ -20,7 +19,7 @@ public class PlayerStats {
public PlayerStats(PlayerData playerData) {
this.playerData = playerData;
-
+
map = MMOData.get(playerData.getPlayer()).setMMOItems(playerData).getStatMap();
}
@@ -45,7 +44,7 @@ public class PlayerStats {
t += item.getNBTItem().getStat(stat.getId());
if (t != 0)
- getInstance(stat).addModifier("item", t + (stat instanceof AttributeStat ? -((AttributeStat) stat).getOffset() : 0));
+ getInstance(stat).addModifier("item", t);
}
}
diff --git a/src/main/java/net/Indyuce/mmoitems/stat/type/AttributeStat.java b/src/main/java/net/Indyuce/mmoitems/stat/type/AttributeStat.java
index db031ad3..210b3651 100644
--- a/src/main/java/net/Indyuce/mmoitems/stat/type/AttributeStat.java
+++ b/src/main/java/net/Indyuce/mmoitems/stat/type/AttributeStat.java
@@ -31,6 +31,7 @@ public abstract class AttributeStat extends DoubleStat {
return attribute;
}
+ @Deprecated
public double getOffset() {
return offset;
}