added a config that determines the order loaded scripts are run in

This commit is contained in:
luisc committed 2025-06-11 17:36:03 -05:00
1 parent 43bf4d3427
commit 7044d8ed63
3 files changed
+27 -9

No files matched your search

@@ -616,6 +616,10 @@ public class ProfileController implements IProfileHandler {
ISlot slot = profile.getSlots().get(profile.getCurrentSlotId());
if (slot == null)
return;
PlayerData pdata = PlayerData.get(player);
pdata.profileSlot = profile.getCurrentSlotId();
for (IProfileData profileData : profileTypes.values()) {
NBTTagCompound data;
if (slot.getComponents().containsKey(profileData.getTagName()))
@@ -628,10 +632,6 @@ public class ProfileController implements IProfileHandler {
profileData.save(player);
}
PlayerData pdata = PlayerData.get(player);
pdata.profileSlot = profile.getCurrentSlotId();
pdata.save();
if (ConfigMain.AttributesEnabled)
AttributeController.getTracker(player).recalcAttributes(player);
}