Skip to content

Commit

Permalink
Update config to reflect change
Browse files Browse the repository at this point in the history
  • Loading branch information
tr7zw committed Dec 26, 2023
1 parent 5d785b4 commit 7924ab6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

public class Config {

public int configVersion = 9;
public float animationSmoothingSpeed = 20f;
public int configVersion = 10;
public float animationSmoothingSpeed = 0.5f;
public Set<String> holdingItems = new HashSet<>(
Arrays.asList("minecraft:clock", "minecraft:compass", "minecraft:torch", "minecraft:lantern",
"minecraft:soul_torch", "minecraft:soul_lantern", "minecraft:recovery_compass"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ public static boolean upgradeConfig(Config config) {
config.configVersion = 9;
config.showLastUsedSword = false; // turning this off by default
}
if (config.configVersion <= 9) {
config.configVersion = 10;
config.animationSmoothingSpeed = 0.5f; // size changed
}
// check for more changes here

return changed;
Expand Down

0 comments on commit 7924ab6

Please sign in to comment.