mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 21:54:08 +00:00
on profile change recalc attributes
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user