From 6d5cb50c0dc492332780721c59e13d1785f81a6e Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Thu, 2 Jul 2026 16:24:33 -0400 Subject: [PATCH] Default mod call case logs a warn message instead of throwing an exception --- ModSupport/ModCalls.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ModSupport/ModCalls.cs b/ModSupport/ModCalls.cs index 7ee382cdfd..237ee67bae 100644 --- a/ModSupport/ModCalls.cs +++ b/ModSupport/ModCalls.cs @@ -2105,7 +2105,10 @@ namespace CalamityMod case "GetDebuffDamageFunction": //This exists because Calamity's Mod Call lookup is slow due to this string switch, and this method may be called hundreds of times per frame by some addons. return (object)DebuffData.GetDebuffRegenValue; default: - return new ArgumentException("ERROR: Invalid method name."); + { + CalamityMod.Log.Warn($"{methodName} is an invalid method name for Calamity Mod. Are you calling a method which no longer exists?"); + return null; + } } } #endregion