mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Fix broken mobspawner doll textures for 4 mobs
This commit is contained in:
parent
777d8403e8
commit
ac8d284fab
1 changed files with 6 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue