Fix Quest Tracking Autocomplete Text

This commit is contained in:
Kam committed 2023-07-29 02:35:15 -04:00
1 parent dd544d033a
commit 2f8dad6ca0
2 files changed
+15 -4

No files matched your search

@@ -143,9 +143,15 @@ public class OverlayQuestTracking extends Gui {
objectiveLines.add(objective);
}
String npcName = compound.getString("TurnInNPC");
if (!npcName.isEmpty()) {
turnInText.add("Complete with " + npcName);
boolean instantComplete = compound.getBoolean("Instant");
if(instantComplete){
turnInText.add("Completed automatically");
}
else {
String npcName = compound.getString("TurnInNPC");
if (!npcName.isEmpty()) {
turnInText.add("Complete with " + npcName);
}
}
this.initOverlay();