3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-03 01:50:07 +01:00

Only add backupregions if whitelisting

Dieser Commit ist enthalten in:
dordsor21 2021-10-25 14:12:36 +01:00
Ursprung 4e6aee6bfb
Commit f7e94fd450
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -147,11 +147,13 @@ public class WEManager {
player.printError(TextComponent.of("Missing permission " + "fawe." + manager.getKey())); player.printError(TextComponent.of("Missing permission " + "fawe." + manager.getKey()));
} }
} }
regions.addAll(backupRegions); if (isWhitelist) {
if (!masks.isEmpty() && isWhitelist) { regions.addAll(backupRegions);
player.setMeta("lastMask", masks); if (!masks.isEmpty()) {
} else if (isWhitelist) { player.setMeta("lastMask", masks);
player.deleteMeta("lastMask"); } else {
player.deleteMeta("lastMask");
}
} }
return regions.toArray(new Region[0]); return regions.toArray(new Region[0]);
} }