mirror of
https://github.com/PikaMug/Quests.git
synced 2025-02-28 18:31:03 +01:00
Workaround for missing location data, fixes #646
This commit is contained in:
parent
39294f18f3
commit
96b3bceacd
@ -2400,6 +2400,11 @@ public class Quester {
|
|||||||
if (questSec.contains("locations-to-reach")) {
|
if (questSec.contains("locations-to-reach")) {
|
||||||
LinkedList<Location> locations = new LinkedList<Location>();
|
LinkedList<Location> locations = new LinkedList<Location>();
|
||||||
List<Boolean> has = questSec.getBooleanList("has-reached-location");
|
List<Boolean> has = questSec.getBooleanList("has-reached-location");
|
||||||
|
while (has.size() < locations.size()) {
|
||||||
|
// TODO - find proper cause of Github issue #646
|
||||||
|
plugin.getLogger().info("Added missing has-reached-location data for Quester " + id);
|
||||||
|
has.add(false);
|
||||||
|
}
|
||||||
List<Integer> radii = questSec.getIntegerList("radii-to-reach-within");
|
List<Integer> radii = questSec.getIntegerList("radii-to-reach-within");
|
||||||
for (String loc : questSec.getStringList("locations-to-reach")) {
|
for (String loc : questSec.getStringList("locations-to-reach")) {
|
||||||
if (Quests.getLocation(loc) != null) {
|
if (Quests.getLocation(loc) != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user