Fix Seven Cherubs quest slot affected by Update Converter bug

Closes: https://github.com/arianne/stendhal/issues/695
This commit is contained in:
Jordan Irwin 2024-03-30 17:55:55 -07:00
parent 37448f470c
commit 454e100aea
No known key found for this signature in database
GPG key ID: E3E358C2F44C290A
2 changed files with 10 additions and 0 deletions

View file

@ -10,6 +10,9 @@ Changelog
*web client*
- fixed text extending past edge of notification bubbles
*server fixes*
- fixed Seven Cherubs not showing up as completed
1.46

View file

@ -655,6 +655,13 @@ public abstract class UpdateConverter {
}
}
}
// 1.47: an issue in update converter caused leading ";" to be trimmed
questSlot = "seven_cherubs";
String slotState = player.getQuest(questSlot);
if (player.hasQuest(questSlot) && !slotState.startsWith(";")) {
player.setQuest(questSlot, ";" + slotState);
}
}