correctly handle road flags

This commit is contained in:
dordsor21
2020-10-11 19:24:50 +01:00
parent 191666a2f2
commit a1bfc1cb26

View File

@@ -388,9 +388,7 @@ public abstract class PlotArea {
this.spawnCustom = config.getBoolean("event.spawn.custom"); this.spawnCustom = config.getBoolean("event.spawn.custom");
this.spawnBreeding = config.getBoolean("event.spawn.breeding"); this.spawnBreeding = config.getBoolean("event.spawn.breeding");
List<String> roadflags = config.getStringList("flags.default"); List<String> roadflags = config.getStringList("road.flags");
if (roadflags.isEmpty()) {
roadflags = config.getStringList("road.flags");
if (roadflags.isEmpty()) { if (roadflags.isEmpty()) {
roadflags = new ArrayList<>(); roadflags = new ArrayList<>();
ConfigurationSection section = config.getConfigurationSection("road.flags"); ConfigurationSection section = config.getConfigurationSection("road.flags");
@@ -401,7 +399,6 @@ public abstract class PlotArea {
} }
} }
} }
}
this.getRoadFlagContainer().addAll(parseFlags(roadflags)); this.getRoadFlagContainer().addAll(parseFlags(roadflags));
Component roadFlagsComponent = null; Component roadFlagsComponent = null;