summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorAuke Kok <auke-jan.h.kok@intel.com>2015-02-01 23:53:25 -0800
committerAuke Kok <auke-jan.h.kok@intel.com>2015-02-01 23:53:25 -0800
commit19f3c53f053f34664a0a3ac463d1c980510a0455 (patch)
tree5e328084fbe186c8b28c29b6a6089ef0acaedb1b /init.lua
parentb3c1b160231bd223fddcd26267b2266fce56d6d8 (diff)
Don't spam server logs.
Just set_node and play_sound at each location.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua3
1 files changed, 2 insertions, 1 deletions
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)