Fix talks that have a quest id of 4 digits or more (#2268)

This commit is contained in:
Nazrin 2023-07-22 20:17:18 -07:00 committed by GitHub
parent 49ba0e55e8
commit 0b806e21cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ public final class TalkConfigData extends GameResource {
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));
}
}