From 4b1c94dc14c4bb19e3c5b0ebfa2a1cbebc13c35c Mon Sep 17 00:00:00 2001 From: raymoo Date: Thu, 28 Jan 2016 15:51:41 -0800 Subject: [PATCH] change error to log for bad effect applications --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 83242b0..07fea37 100644 --- a/init.lua +++ b/init.lua @@ -365,7 +365,8 @@ monoidal_effects.apply_effect = function(effect_type, dur, player_name, values) local type_def = types[effect_type] if (type_def == nil) then - error("Tried to apply nonexistent effect type") + minetest.log("error", "Tried to apply nonexistent effect type " .. effect_type) + return nil end local dyn = type_def.dynamic