Skip to content

Commit

Permalink
Bug-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
isHarryh committed Aug 31, 2023
1 parent 335b573 commit 2d76421
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion core/src/cn/harryh/arkpets/Const.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
5 changes: 3 additions & 2 deletions core/src/cn/harryh/arkpets/behaviors/Behavior.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,14 @@ String getProperAnimName(String $wanted, String[] $notWanted) {
HashMap<String, Integer> 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<String, Integer> entry : map.entrySet()) {
Expand Down
2 changes: 1 addition & 1 deletion docs/scripts/ExePacking.iss
Original file line number Diff line number Diff line change
Expand Up @@ -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/"

Expand Down

0 comments on commit 2d76421

Please sign in to comment.