mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-12 03:59:22 +00:00
Fixed invalid flags in plot info
This commit is contained in:
parent
393603e786
commit
eb2c901d73
1 changed files with 1 additions and 5 deletions
|
@ -205,10 +205,6 @@ public class FlagManager {
|
||||||
if (!result) {
|
if (!result) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
final Flag hasFlag = getPlotFlag(plot, flag.getKey());
|
|
||||||
if (hasFlag != null) {
|
|
||||||
plot.settings.flags.remove(hasFlag);
|
|
||||||
}
|
|
||||||
plot.settings.flags.put(flag.getKey(), flag);
|
plot.settings.flags.put(flag.getKey(), flag);
|
||||||
DBFunc.setFlags(plot.world, plot, plot.settings.flags.values());
|
DBFunc.setFlags(plot.world, plot, plot.settings.flags.values());
|
||||||
return true;
|
return true;
|
||||||
|
@ -247,7 +243,7 @@ public class FlagManager {
|
||||||
map = new HashMap<>();
|
map = new HashMap<>();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
map = plotworld.DEFAULT_FLAGS;
|
map = (HashMap<String, Flag>) plotworld.DEFAULT_FLAGS.clone();
|
||||||
}
|
}
|
||||||
map.putAll(settings.flags);
|
map.putAll(settings.flags);
|
||||||
return map.values();
|
return map.values();
|
||||||
|
|
Loading…
Reference in a new issue