From ac8d284fabd0136dc65190f30ea716fa7a3905be Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 7 Jan 2018 17:50:50 +0100 Subject: [PATCH] Fix broken mobspawner doll textures for 4 mobs --- mods/ITEMS/mcl_mobspawners/init.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_mobspawners/init.lua b/mods/ITEMS/mcl_mobspawners/init.lua index 9c37faee30..a2c8330b3b 100644 --- a/mods/ITEMS/mcl_mobspawners/init.lua +++ b/mods/ITEMS/mcl_mobspawners/init.lua @@ -8,8 +8,12 @@ local default_mob = "mobs_mc:pig" local spawner_default = default_mob.." 0 15 4 15" local function get_mob_textures(mob) - -- FIXME: Ummm … wtf? Why isn't there a textures attribute? - return minetest.registered_entities[mob].texture_list[1] + local list = minetest.registered_entities[mob].texture_list + if type(list[1]) == "table" then + return list[1] + else + return list + end end local function find_doll(pos)