From 77f9f40065ba7aed91310494f3e062ade21ed693 Mon Sep 17 00:00:00 2001 From: riking Date: Sat, 5 Oct 2013 16:02:34 -0700 Subject: [PATCH] Do not save an un-loaded PlayerProfile --- .../com/gmail/nossr50/datatypes/player/PlayerProfile.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java b/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java index e0a2138d8..7e2438541 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java +++ b/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java @@ -54,7 +54,7 @@ public class PlayerProfile { * Calling this constructor is considered loading the profile. */ public PlayerProfile(String playerName, Map argSkills, Map argSkillsXp, Map argSkillsDats, MobHealthbarType mobHealthbarType) { - this(playerName, true); + this(playerName); this.mobHealthbarType = mobHealthbarType; @@ -66,7 +66,7 @@ public class PlayerProfile { } public void save() { - if (!changed) { + if (!changed || !loaded) { return; }