mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-08 08:33:22 +08:00
Fix talks that have a quest id of 4 digits or more (#2268)
This commit is contained in:
parent
49ba0e55e8
commit
0b806e21cf
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user