diff --git a/manifest.json b/manifest.json index dcbf3b2..f54bf7c 100644 --- a/manifest.json +++ b/manifest.json @@ -17,5 +17,5 @@ "conflicts": [ "Jen" ], - "version": "1.5.29" + "version": "1.5.30" } \ No newline at end of file diff --git a/src/back.lua b/src/back.lua index 9db444f..b3f1f10 100644 --- a/src/back.lua +++ b/src/back.lua @@ -654,7 +654,11 @@ back { for _, v in pairs(G.P_CENTERS) do if v.apply and not banned_keys[v.key] and (v.set == "Back" or v.set == "Sleeve") then - v:apply(...) + local status, err = pcall(v.apply, v, ...) + + if not status then + sendWarnMessage(v.key .. "'s apply cannot run: " .. err) + end end end end, @@ -676,7 +680,11 @@ back { alt_calculate = function(_, ...) for _, v in pairs(G.P_CENTERS) do if v.calculate and not banned_keys[v.key] and (v.set == "Back" or v.set == "Sleeve") then - v:calculate(...) + local status, err = pcall(v.calculate, v, ...) + + if not status then + sendWarnMessage(v.key .. "'s calculate cannot run: " .. err) + end end end end,