Fixed problem with attributes on reload

This commit is contained in:
Jules 2025-10-17 01:29:41 +02:00
parent 389791232d
commit dd5d7d321f

View File

@ -189,7 +189,7 @@ public class PlayerAttributes {
public AttributeInstance(@NotNull String attributeId) {
this.id = attributeId;
this.enumName = UtilityMethods.enumName(this.id);
this.attribute = Lazy.of(() -> MMOCore.plugin.attributeManager.get(this.id));
this.attribute = Lazy.persistent(() -> MMOCore.plugin.attributeManager.get(this.id));
}
/**