1
0
Fork 0

Fix broken mobspawner doll textures for 4 mobs

objects
Wuzzy 2018-01-07 17:50:50 +01:00
parent 777d8403e8
commit ac8d284fab
1 changed files with 6 additions and 2 deletions

View File

@ -8,8 +8,12 @@ local default_mob = "mobs_mc:pig"
local spawner_default = default_mob.." 0 15 4 15" local spawner_default = default_mob.." 0 15 4 15"
local function get_mob_textures(mob) local function get_mob_textures(mob)
-- FIXME: Ummm … wtf? Why isn't there a textures attribute? local list = minetest.registered_entities[mob].texture_list
return minetest.registered_entities[mob].texture_list[1] if type(list[1]) == "table" then
return list[1]
else
return list
end
end end
local function find_doll(pos) local function find_doll(pos)