From 4ec0fd974bcda2f0ea59084cfd4421ab00c3d38f Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Fri, 28 Apr 2017 21:09:07 -0700 Subject: [PATCH] Doors: place sound when placing a door. Due to door items being the thing that's placed, we need to explicitly play a sound when placing a door. Fixes #1363 --- mods/doors/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/doors/init.lua b/mods/doors/init.lua index 05aa3e2f..5189dec7 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -332,6 +332,8 @@ function doors.register(name, def) itemstack:take_item() end + minetest.sound_play(def.sounds.place, {pos = pos}) + on_place_node(pos, minetest.get_node(pos), placer, node, itemstack, pointed_thing)