mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 20:41:11 +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 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 a new issue