mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-23 04:47:34 +01:00
Rolled back stat offset change
This commit is contained in:
parent
a37ae7056f
commit
1adf8d79d2
@ -8,6 +8,7 @@ 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;
|
||||
@ -44,7 +45,7 @@ public class PlayerStats {
|
||||
t += item.getNBTItem().getStat(stat.getId());
|
||||
|
||||
if (t != 0)
|
||||
getInstance(stat).addModifier("item", t);
|
||||
getInstance(stat).addModifier("item", t - (stat instanceof AttributeStat ? ((AttributeStat) stat).getOffset() : 0));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,6 @@ public abstract class AttributeStat extends DoubleStat {
|
||||
return attribute;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public double getOffset() {
|
||||
return offset;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user