From eb5efc295d279d783948e317e41327c15c4b51e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Wed, 28 Jun 2017 18:04:43 +0200 Subject: Removed debug info --- init.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index 5de8eac..7bd6ac0 100644 --- a/init.lua +++ b/init.lua @@ -146,9 +146,7 @@ minetest.register_abm({ local all_objects = minetest.get_objects_inside_radius(pos, 0.75) local _,obj for _,obj in ipairs(all_objects) do - if obj:get_luaentity() then - minetest.chat_send_all(obj:get_luaentity().name) - end + if obj:is_player() and not obj:get_attach() then dum = walkway.do_moving_dummy({x = pos.x, y = pos.y + 0.15, z = pos.z}, obj):get_luaentity() dum.player = obj @@ -158,7 +156,7 @@ minetest.register_abm({ elseif obj:get_luaentity() and string.sub(obj:get_luaentity().name,1,string.len("mobs_animal")) == "mobs_animal" then dum = walkway.do_moving_dummy({x = pos.x, y = pos.y + 0.15, z = pos.z}, obj):get_luaentity() dum.player = obj - minetest.chat_send_all("Attaching "..obj:get_luaentity().name) +-- minetest.chat_send_all("Attaching "..obj:get_luaentity().name) obj:set_attach(dum.object, "", {x=0,y=-1,z=0}, {x=0,y=0,z=0}) end end -- cgit v1.2.3