浏览代码

Fixed bug where MobHealthbarTypes were not saved

TfT_02 10 年之前
父节点
当前提交
a2c395db36
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. 1 0
      Changelog.txt
  2. 2 0
      src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java

+ 1 - 0
Changelog.txt

@@ -10,6 +10,7 @@ Key:
 Version 1.5.02-dev
 Version 1.5.02-dev
  + Added option to config.yml for Chimaera Wings to stop using bed spawn points
  + Added option to config.yml for Chimaera Wings to stop using bed spawn points
  = Fixed bug where no Mining XP was granted when Flux Mining was successful
  = Fixed bug where no Mining XP was granted when Flux Mining was successful
+ = Fixed bug where MobHealthbarTypes were not saved between server restarts
  ! Changed Flux Mining mechanics. In order to use the ability, you need to infuse a pickaxe with furnace powers first.
  ! Changed Flux Mining mechanics. In order to use the ability, you need to infuse a pickaxe with furnace powers first.
 
 
 Version 1.5.01
 Version 1.5.01

+ 2 - 0
src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java

@@ -127,6 +127,8 @@ public class PlayerProfile {
     }
     }
 
 
     public void setMobHealthbarType(MobHealthbarType mobHealthbarType) {
     public void setMobHealthbarType(MobHealthbarType mobHealthbarType) {
+        changed = true;
+
         this.mobHealthbarType = mobHealthbarType;
         this.mobHealthbarType = mobHealthbarType;
     }
     }