Skip to content

Commit

Permalink
Fix talks that have a quest id of 4 digits or more (Grasscutters#2268)
Browse files Browse the repository at this point in the history
  • Loading branch information
scooterboo committed Jul 23, 2023
1 parent 49ba0e5 commit 0b806e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void onLoad() {

if (this.questId <= 0) {
var id = String.valueOf(this.getId());
this.questId = Integer.parseInt(id.length() < 5 ? "0" : id.substring(0, 3));
this.questId = Integer.parseInt(id.length() < 5 ? "0" : id.substring(0, id.length() - 2));
}
}

Expand Down

0 comments on commit 0b806e2

Please sign in to comment.