Skip to content

Commit

Permalink
tweaked advancement criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
Globox1997 committed Jan 11, 2024
1 parent 83ee70c commit a9b34db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
- Fixed armor switching
- Fixed rei tooltip issue
### Changed:
-
- Tweaked advancement criteria
5 changes: 3 additions & 2 deletions src/main/java/net/levelz/criteria/NumberPredicate.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ public NumberPredicate(int levelZ) {
}

public boolean test(int level) {
if (this.levelZ == level)
if (this.levelZ == 0 || this.levelZ == level) {
return true;
else
} else {
return false;
}
}

public static NumberPredicate fromJson(JsonElement json) {
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/net/levelz/criteria/SkillPredicate.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ public SkillPredicate(String jobName) {
}

public boolean test(String jobName) {
if (this.jobName.equals(jobName))
if (this.jobName.equals(jobName)) {
return true;
else
} else {
return false;
}
}

public static SkillPredicate fromJson(JsonElement json) {
Expand Down

0 comments on commit a9b34db

Please sign in to comment.