Fix broken mobspawner doll textures for 4 mobs
This commit is contained in:
parent
777d8403e8
commit
ac8d284fab
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user