on profile change recalc attributes

This commit is contained in:
Kam committed 2025-02-28 18:38:11 -05:00
1 parent 05df0509e1
commit be9d664017
1 file changed
+3
@@ -454,6 +454,9 @@ public class ProfileController implements IProfileHandler {
PlayerData pdata = PlayerData.get(profile.player);
pdata.profileSlot = newSlotId;
pdata.save();
if(ConfigMain.AttributesEnabled)
AttributeController.getTracker(profile.player).recalcAttributes(profile.player);
} else {
return ProfileOperation.error(MSG_PLAYER_NOT_FOUND);
}