From 19f3c53f053f34664a0a3ac463d1c980510a0455 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Sun, 1 Feb 2015 23:53:25 -0800 Subject: Don't spam server logs. Just set_node and play_sound at each location. --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index c134375..c2eddbc 100644 --- a/init.lua +++ b/init.lua @@ -363,7 +363,8 @@ local function sed() if node_is_valid_target_for_displacement(tpos) then -- time to displace the node from pos to tpos - minetest.place_node(tpos, node) + minetest.set_node(tpos, node) + minetest.sound_play({name = "default_place_node"}, { pos = tpos }) minetest.get_meta(tpos):from_table(minetest.get_meta(pos):to_table()) minetest.remove_node(pos) -- cgit v1.2.3