mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 19:39:07 +00:00
Recalc on Load
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user