entity.mesh is no loner needed (better mob mod compatibility)
This commit is contained in:
parent
8b5c45701a
commit
28a1fc8b9a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user