From: Auke Kok Date: Sat, 29 Apr 2017 04:09:07 +0000 (-0700) Subject: Doors: place sound when placing a door. X-Git-Tag: 0.4.16~17 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4ec0fd974bcda2f0ea59084cfd4421ab00c3d38f;p=oweals%2Fminetest_game.git 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 --- 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)