Fixes a bug causing all quest markers to be deleted
This commit is contained in:
parent
935a6ce662
commit
df72d37b74
@ -68,11 +68,11 @@ public class QuestsHandler extends AbstractTraitHandler {
|
|||||||
boolean questsChanged = loadedQuests == null || !loadedQuests.equals(questsAPI.getLoadedQuests());
|
boolean questsChanged = loadedQuests == null || !loadedQuests.equals(questsAPI.getLoadedQuests());
|
||||||
loadedQuests = questsAPI.getLoadedQuests();
|
loadedQuests = questsAPI.getLoadedQuests();
|
||||||
|
|
||||||
//Remove old quest markers
|
|
||||||
questMarkerSet.getMarkers().forEach(GenericMarker::deleteMarker);
|
|
||||||
|
|
||||||
//Updates all quest area markers
|
//Updates all quest area markers
|
||||||
if (questsChanged) {
|
if (questsChanged) {
|
||||||
|
//Remove old quest markers
|
||||||
|
questMarkerSet.getMarkers().forEach(GenericMarker::deleteMarker);
|
||||||
|
|
||||||
//Update all area markers for quests
|
//Update all area markers for quests
|
||||||
updateQuestAreas();
|
updateQuestAreas();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user