From 28a1fc8b9ad0db3baeb742a47ca0cdaecaa15d96 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Sun, 10 Sep 2023 00:28:32 +0200 Subject: [PATCH] entity.mesh is no loner needed (better mob mod compatibility) --- fs_fashion.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fs_fashion.lua b/fs_fashion.lua index 9c75e40..71376c0 100644 --- a/fs_fashion.lua +++ b/fs_fashion.lua @@ -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