From 0b806e21cf08014c3572dc4e903258cc3b56f545 Mon Sep 17 00:00:00 2001 From: Nazrin Date: Sat, 22 Jul 2023 20:17:18 -0700 Subject: [PATCH] Fix talks that have a quest id of 4 digits or more (#2268) --- src/main/java/emu/grasscutter/data/excels/TalkConfigData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/data/excels/TalkConfigData.java b/src/main/java/emu/grasscutter/data/excels/TalkConfigData.java index 5cc84fb64..25506dbd2 100644 --- a/src/main/java/emu/grasscutter/data/excels/TalkConfigData.java +++ b/src/main/java/emu/grasscutter/data/excels/TalkConfigData.java @@ -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)); } }