Recalc on Load

This commit is contained in:
Kam committed 2025-03-10 18:32:24 -04:00
1 parent 79c8765c51
commit 7f77894cfc
1 file changed
+3 -3
@@ -447,9 +447,6 @@ public class ProfileController implements IProfileHandler {
saveSlotData(profile.player);
profile.currentSlotId = newSlotId;
loadSlotData(profile.player);
if(ConfigMain.AttributesEnabled)
AttributeController.getTracker(profile.player).recalcAttributes(profile.player);
} else {
return ProfileOperation.error(MSG_PLAYER_NOT_FOUND);
}
@@ -594,6 +591,9 @@ public class ProfileController implements IProfileHandler {
PlayerData pdata = PlayerData.get(player);
pdata.profileSlot = profile.getCurrentSlotId();
pdata.save();
if(ConfigMain.AttributesEnabled)
AttributeController.getTracker(player).recalcAttributes(player);
}
public List<ProfileInfoEntry> getProfileInfo(EntityPlayer player, int slotId) {