Skip to content

Commit

Permalink
Only print ExU radar ping stacktrace in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ACGaming committed Nov 23, 2024
1 parent b3ff057 commit adaf849
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
}
Expand Down

0 comments on commit adaf849

Please sign in to comment.