mirror of
https://github.com/tacigar/maidroid.git
synced 2024-11-16 15:20:21 +01:00
Merge pull request #119 from tacigar/tacigar/egg_entity_bug
Fix egg_entity bug
This commit is contained in:
commit
b45a21f66f
|
@ -131,7 +131,7 @@ do -- register egg writer
|
||||||
|
|
||||||
local function get_nearest_egg_entity(pos)
|
local function get_nearest_egg_entity(pos)
|
||||||
pos.y = pos.y + 0.25 -- egg entity is above.
|
pos.y = pos.y + 0.25 -- egg entity is above.
|
||||||
local all_objects = minetest.get_objects_inside_radius(pos, 0.2)
|
local all_objects = minetest.get_objects_inside_radius(pos, 0.35)
|
||||||
for _, object in ipairs(all_objects) do
|
for _, object in ipairs(all_objects) do
|
||||||
if object:get_luaentity() ~= nil and object:get_luaentity().name == "maidroid_tool:egg_entity" then
|
if object:get_luaentity() ~= nil and object:get_luaentity().name == "maidroid_tool:egg_entity" then
|
||||||
return object:get_luaentity()
|
return object:get_luaentity()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user