mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 05:43:43 +01:00
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 <the-real-herowl@noreply.git.minetest.land> Co-authored-by: WillConker <willconker@noreply.git.minetest.land> Co-committed-by: WillConker <willconker@noreply.git.minetest.land>
This commit is contained in:
parent
6eb0d3c9d9
commit
ce5eb8d88d
@ -401,7 +401,7 @@ minetest.register_lbm({
|
|||||||
|
|
||||||
minetest.register_on_mods_loaded(function()
|
minetest.register_on_mods_loaded(function()
|
||||||
for name,mobinfo in pairs(minetest.registered_entities) do
|
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")
|
minetest.log("warning", "Definition for "..tostring(name).." is missing field 'visual_size', mob spawners will not work properly")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user