From adaf8495c5b8f10df42ac4f3a1f07a64b5b2176f Mon Sep 17 00:00:00 2001 From: ACGaming <4818419+ACGaming@users.noreply.github.com> Date: Sat, 23 Nov 2024 11:21:58 +0100 Subject: [PATCH] Only print ExU radar ping stacktrace in debug mode --- .../mods/extrautilities/radar/mixin/UTRadarPingMixin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/mod/acgaming/universaltweaks/mods/extrautilities/radar/mixin/UTRadarPingMixin.java b/src/main/java/mod/acgaming/universaltweaks/mods/extrautilities/radar/mixin/UTRadarPingMixin.java index 9cbd2936..e811f45c 100644 --- a/src/main/java/mod/acgaming/universaltweaks/mods/extrautilities/radar/mixin/UTRadarPingMixin.java +++ b/src/main/java/mod/acgaming/universaltweaks/mods/extrautilities/radar/mixin/UTRadarPingMixin.java @@ -6,6 +6,7 @@ import com.llamalad7.mixinextras.injector.wrapoperation.Operation; import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation; import com.rwtema.extrautils2.crafting.Radar; +import mod.acgaming.universaltweaks.config.UTConfigGeneral; import mod.acgaming.universaltweaks.config.UTConfigMods; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; @@ -24,7 +25,7 @@ private ItemStack utCatchItemHandlerException(IItemHandler instance, int slot, O } catch (AbstractMethodError e) { - e.printStackTrace(); + if (UTConfigGeneral.DEBUG.utDebugToggle) e.printStackTrace(); return ItemStack.EMPTY; } }