mirror of
https://github.com/Auxilor/EcoSkills.git
synced 2026-01-02 05:46:57 +00:00
Fixed bug
This commit is contained in:
@@ -107,11 +107,19 @@ fun Player.addStatModifier(modifier: StatModifier) {
|
||||
modifierTag.set(amountKey, PersistentDataType.INTEGER, modifier.amount)
|
||||
|
||||
modifiers.set(modifier.key, PersistentDataType.TAG_CONTAINER, modifierTag)
|
||||
|
||||
for (stat in Stats.values()) {
|
||||
stat.updateStatLevel(this)
|
||||
}
|
||||
}
|
||||
|
||||
fun Player.removeStatModifier(modifier: StatModifier) {
|
||||
val modifiers = getModifiersTag(this)
|
||||
modifiers.remove(modifier.key)
|
||||
|
||||
for (stat in Stats.values()) {
|
||||
stat.updateStatLevel(this)
|
||||
}
|
||||
}
|
||||
|
||||
fun Player.getStatModifierKeys(): MutableSet<NamespacedKey> {
|
||||
|
||||
Reference in New Issue
Block a user