forked from MineClone5/MineClone5
Fix rabbit crash
This commit is contained in:
parent
44d8caf3b7
commit
a75c8d427e
|
@ -76,6 +76,7 @@ local function spawn_rabbit(pos)
|
|||
local biome_data = minetest.get_biome_data(pos)
|
||||
local biome_name = biome_data and minetest.get_biome_name(biome_data.biome) or ""
|
||||
local mob = minetest.add_entity(pos, mob_name)
|
||||
if not mob then return end
|
||||
local self = mob:get_luaentity()
|
||||
local texture
|
||||
if biome_name:find("Desert") then
|
||||
|
|
Loading…
Reference in New Issue