change error to log for bad effect applications

This commit is contained in:
raymoo 2016-01-28 15:51:41 -08:00
parent 593ce17fab
commit 4b1c94dc14

View File

@ -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