From ce5eb8d88db719050dcb16ccbe869d52dcab860f Mon Sep 17 00:00:00 2001 From: WillConker Date: Sun, 15 Sep 2024 23:08:37 +0200 Subject: [PATCH] Remove mobs_mc name check from mcl_mobspawners warning (#4501) Fixes a warning. Mobs spawners really only need to check the entity `.is_mob` as all mobs should have this set. Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4501 Reviewed-by: the-real-herowl Co-authored-by: WillConker Co-committed-by: WillConker --- mods/ITEMS/mcl_mobspawners/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_mobspawners/init.lua b/mods/ITEMS/mcl_mobspawners/init.lua index 8b2c73d8c..f2ee44ab1 100644 --- a/mods/ITEMS/mcl_mobspawners/init.lua +++ b/mods/ITEMS/mcl_mobspawners/init.lua @@ -401,7 +401,7 @@ minetest.register_lbm({ minetest.register_on_mods_loaded(function() for name,mobinfo in pairs(minetest.registered_entities) do - if ( mobinfo.is_mob or name:find("mobs_mc") ) and not ( mobinfo.visual_size or mobinfo._convert_to ) then + if mobinfo.is_mob and not ( mobinfo.visual_size or mobinfo._convert_to ) then minetest.log("warning", "Definition for "..tostring(name).." is missing field 'visual_size', mob spawners will not work properly") end end