mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
correctly handle road flags
This commit is contained in:
parent
191666a2f2
commit
a1bfc1cb26
@ -388,9 +388,7 @@ public abstract class PlotArea {
|
||||
this.spawnCustom = config.getBoolean("event.spawn.custom");
|
||||
this.spawnBreeding = config.getBoolean("event.spawn.breeding");
|
||||
|
||||
List<String> roadflags = config.getStringList("flags.default");
|
||||
if (roadflags.isEmpty()) {
|
||||
roadflags = config.getStringList("road.flags");
|
||||
List<String> roadflags = config.getStringList("road.flags");
|
||||
if (roadflags.isEmpty()) {
|
||||
roadflags = new ArrayList<>();
|
||||
ConfigurationSection section = config.getConfigurationSection("road.flags");
|
||||
@ -401,7 +399,6 @@ public abstract class PlotArea {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.getRoadFlagContainer().addAll(parseFlags(roadflags));
|
||||
|
||||
Component roadFlagsComponent = null;
|
||||
|
Loading…
Reference in New Issue
Block a user