mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-03 06:37:47 +01:00
Fixed vanilla attributes stats offset
This commit is contained in:
parent
ad63d4e58d
commit
a37ae7056f
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>net.Indyuce</groupId>
|
||||
<artifactId>MMOItems</artifactId>
|
||||
<version>5.2</version>
|
||||
<version>5.2.1</version>
|
||||
<name>MMOItems</name>
|
||||
<description>A great item solution for your RPG server.</description>
|
||||
|
||||
|
@ -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;
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -31,6 +31,7 @@ public abstract class AttributeStat extends DoubleStat {
|
||||
return attribute;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public double getOffset() {
|
||||
return offset;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user