Fixes a bug causing all quest markers to be deleted

This commit is contained in:
Kristian Knarvik 2022-11-02 01:53:10 +01:00
parent 935a6ce662
commit df72d37b74

View File

@ -68,11 +68,11 @@ public class QuestsHandler extends AbstractTraitHandler {
boolean questsChanged = loadedQuests == null || !loadedQuests.equals(questsAPI.getLoadedQuests());
loadedQuests = questsAPI.getLoadedQuests();
//Remove old quest markers
questMarkerSet.getMarkers().forEach(GenericMarker::deleteMarker);
//Updates all quest area markers
if (questsChanged) {
//Remove old quest markers
questMarkerSet.getMarkers().forEach(GenericMarker::deleteMarker);
//Update all area markers for quests
updateQuestAreas();