fix: only send invalid region messages with debug true (#2238)

- Addresses #2188
This commit is contained in:
Jordan 2023-05-22 19:33:15 +01:00 committed by GitHub
parent 7c01c1e95e
commit 435161d566
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,7 +130,9 @@ public class WEManager {
backupRegions.add(region); backupRegions.add(region);
} }
} else { } else {
player.print(Caption.of("fawe.error.region-mask-invalid", mask.getClass().getSimpleName())); if (Settings.settings().ENABLED_COMPONENTS.DEBUG) {
player.printDebug(Caption.of("fawe.error.region-mask-invalid", mask.getClass().getSimpleName()));
}
removed = true; removed = true;
iterator.remove(); iterator.remove();
} }