mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 12:05:09 +00:00
Mob spawner: Fix mob sometimes not set correctly
This commit is contained in:
parent
f71cff0468
commit
b133dd6d5b
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ local function get_mob_textures(mob)
|
|||
end
|
||||
|
||||
local function find_doll(pos)
|
||||
for _,obj in ipairs(minetest.get_objects_inside_radius(pos, 1)) do
|
||||
for _,obj in ipairs(minetest.get_objects_inside_radius(pos, 0.5)) do
|
||||
if not obj:is_player() then
|
||||
if obj ~= nil and obj:get_luaentity().name == "mcl_mobspawners:doll" then
|
||||
return obj
|
||||
|
|
Loading…
Reference in a new issue