mirror of
https://github.com/NLthijs48/AreaShop.git
synced 2024-11-16 15:25:11 +01:00
Only reset WorldGuard flag/groupFlag if not already empty
This commit is contained in:
parent
07e6782714
commit
b835c4dded
@ -131,8 +131,10 @@ public class WorldGuardRegionFlagsFeature extends RegionFeature {
|
||||
}
|
||||
RegionGroupFlag groupFlag = foundFlag.getRegionGroupFlag();
|
||||
if(value == null || value.isEmpty()) {
|
||||
worldguardRegion.setFlag(foundFlag, null);
|
||||
if(groupFlag != null) {
|
||||
if(worldguardRegion.getFlag(foundFlag) != null) {
|
||||
worldguardRegion.setFlag(foundFlag, null);
|
||||
}
|
||||
if(groupFlag != null && worldguardRegion.getFlag(groupFlag) != null) {
|
||||
worldguardRegion.setFlag(groupFlag, null);
|
||||
}
|
||||
//AreaShop.debug(" Flag " + flagName + " reset (+ possible group of flag)");
|
||||
|
Loading…
Reference in New Issue
Block a user