Make removing regions from AreaShop less destructible for region flags

First AreaShop would reset all flags, now it will only reset the
greeting and farewell flags. This is to make sure players do not get
confused about the region, if the greeting is still there then players
might think it is still connected to AreaShop.

Fixes #72
This commit is contained in:
Thijs Wiefferink 2015-10-03 20:27:19 +02:00
parent 48ab46ecf7
commit 39d755d2db

View File

@ -1032,9 +1032,8 @@ public abstract class GeneralRegion implements GeneralRegionInterface, Comparabl
public void resetRegionFlags() {
ProtectedRegion region = getRegion();
if(region != null) {
for(Flag<?> flag : DefaultFlag.getFlags()) {
region.setFlag(flag, null);
}
region.setFlag(DefaultFlag.GREET_MESSAGE, null);
region.setFlag(DefaultFlag.FAREWELL_MESSAGE, null);
}
}