From 435161d566e8d80341d90cb19a4d5fbf23276e8c Mon Sep 17 00:00:00 2001 From: Jordan Date: Mon, 22 May 2023 19:33:15 +0100 Subject: [PATCH] fix: only send invalid region messages with debug true (#2238) - Addresses #2188 --- .../main/java/com/fastasyncworldedit/core/util/WEManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/util/WEManager.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/util/WEManager.java index 85f4eb2d1..439b486e3 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/util/WEManager.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/util/WEManager.java @@ -130,7 +130,9 @@ public class WEManager { backupRegions.add(region); } } 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; iterator.remove(); }