From 95228500a9466b3b016bcb9c45dba57da11a473e Mon Sep 17 00:00:00 2001 From: teknomunk Date: Tue, 28 May 2024 20:02:58 -0500 Subject: [PATCH] Don't crash when name == nil --- mods/ITEMS/mcl_potions/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_potions/functions.lua b/mods/ITEMS/mcl_potions/functions.lua index fc03b9012..429c177bb 100644 --- a/mods/ITEMS/mcl_potions/functions.lua +++ b/mods/ITEMS/mcl_potions/functions.lua @@ -1833,7 +1833,7 @@ end function mcl_potions.give_effect_by_level(name, object, level, duration, no_particles) if level == 0 then return false end if not registered_effects[name] then - minetest.log("warning", "[mcl_potions] Trying to give unknown effect "..name) + minetest.log("warning", "[mcl_potions] Trying to give unknown effect "..tostring(name)) return false end if not registered_effects[name].uses_factor then