entity.mesh is no loner needed (better mob mod compatibility)

This commit is contained in:
Sokomine 2023-09-10 00:28:32 +02:00
parent 8b5c45701a
commit 28a1fc8b9a

View File

@ -16,6 +16,11 @@ yl_speak_up.get_mesh = function(pname)
if(not(entity)) then
return "error"
end
-- mobs_redo stores it extra; other mob mods may not
if(not(entity.mesh) and entity.name
and minetest.registered_entities[entity.name]) then
return minetest.registered_entities[entity.name].mesh
end
return entity.mesh
end