Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-09-06 16:12:51 +02:00
Only add backupregions if whitelisting
Dieser Commit ist enthalten in:
Ursprung
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]);
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren