diff --git a/build.gradle b/build.gradle index 064eb056..9ec18b35 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ allprojects { apply plugin: "java-library" apply plugin: "org.openjfx.javafxplugin" - version = '2.2.0' + version = '2.2.1' ext { // App Metadata appName = "ArkPets" diff --git a/core/src/cn/harryh/arkpets/Const.java b/core/src/cn/harryh/arkpets/Const.java index 38103d64..cf3b5484 100644 --- a/core/src/cn/harryh/arkpets/Const.java +++ b/core/src/cn/harryh/arkpets/Const.java @@ -11,7 +11,7 @@ */ public final class Const { // App version - public static final Version appVersion = new Version(2, 2, 0); + public static final Version appVersion = new Version(2, 2, 1); // App name public static final String appName = "ArkPets"; diff --git a/core/src/cn/harryh/arkpets/behaviors/Behavior.java b/core/src/cn/harryh/arkpets/behaviors/Behavior.java index c99de420..8af19494 100644 --- a/core/src/cn/harryh/arkpets/behaviors/Behavior.java +++ b/core/src/cn/harryh/arkpets/behaviors/Behavior.java @@ -79,13 +79,14 @@ String getProperAnimName(String $wanted, String[] $notWanted) { HashMap map = new HashMap<>(); for (String s : anim_list) { if (s.contains($wanted)) { - Integer i = 0; - map.put(s, i); + int i = 0; for (String t : $notWanted) if (s.contains(t)) i += 1; + map.put(s, i); } } + // Find the key with the min value String minK = ""; Integer minV = Integer.MAX_VALUE; for (HashMap.Entry entry : map.entrySet()) { diff --git a/docs/scripts/ExePacking.iss b/docs/scripts/ExePacking.iss index a6beac88..4c554f04 100644 --- a/docs/scripts/ExePacking.iss +++ b/docs/scripts/ExePacking.iss @@ -3,7 +3,7 @@ ; Download Inno Setup: https://jrsoftware.org/isdl.php #define MyAppName "ArkPets" -#define MyAppVersion "2.2.0" +#define MyAppVersion "2.2.1" #define MyAppPublisher "Harry Huang" #define MyAppURL "https://arkpets.harryh.cn/"