Skip to content

Commit

Permalink
Fixed: level was not saved if changed but not played
Browse files Browse the repository at this point in the history
  • Loading branch information
salmonb committed Jun 8, 2024
1 parent a04c54e commit d313a73
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ private enum EnemyType {
Consumer<Integer> levelChanger = l -> {
level = clamp(1, 32, l);
levelText.setText("Level " + level);
PropertyManager.INSTANCE.setLong(Constants.LEVEL_KEY, this.level);
};
levelChanger.accept(level);
levelSelector.setVisible(false);
Expand Down

0 comments on commit d313a73

Please sign in to comment.