diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2017-06-28 18:04:43 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2017-06-28 18:04:43 +0200 |
commit | eb5efc295d279d783948e317e41327c15c4b51e7 (patch) | |
tree | 3086cf3cfe2b4180a950d05961cd90ccfebb898f | |
parent | c1877fe4e9aed6af55b6e396d357105f4d659f87 (diff) | |
download | walkway-eb5efc295d279d783948e317e41327c15c4b51e7.tar.gz walkway-eb5efc295d279d783948e317e41327c15c4b51e7.tar.bz2 walkway-eb5efc295d279d783948e317e41327c15c4b51e7.zip |
Removed debug info
-rw-r--r-- | init.lua | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 |