Removed debug info
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>
Wed, 28 Jun 2017 16:04:43 +0000 (18:04 +0200)
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>
Wed, 28 Jun 2017 16:04:43 +0000 (18:04 +0200)
init.lua

index 5de8eac..7bd6ac0 100644 (file)
--- 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