mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Only add backupregions if whitelisting
This commit is contained in:
parent
4e6aee6bfb
commit
f7e94fd450
@ -147,11 +147,13 @@ public class WEManager {
|
||||
player.printError(TextComponent.of("Missing permission " + "fawe." + manager.getKey()));
|
||||
}
|
||||
}
|
||||
regions.addAll(backupRegions);
|
||||
if (!masks.isEmpty() && isWhitelist) {
|
||||
player.setMeta("lastMask", masks);
|
||||
} else if (isWhitelist) {
|
||||
player.deleteMeta("lastMask");
|
||||
if (isWhitelist) {
|
||||
regions.addAll(backupRegions);
|
||||
if (!masks.isEmpty()) {
|
||||
player.setMeta("lastMask", masks);
|
||||
} else {
|
||||
player.deleteMeta("lastMask");
|
||||
}
|
||||
}
|
||||
return regions.toArray(new Region[0]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user