Skip to content

Commit 4ec0fd9

Browse files
committedApr 29, 2017
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
1 parent 67b13a5 commit 4ec0fd9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

Diff for: ‎mods/doors/init.lua

+2
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ function doors.register(name, def)
332332
itemstack:take_item()
333333
end
334334

335+
minetest.sound_play(def.sounds.place, {pos = pos})
336+
335337
on_place_node(pos, minetest.get_node(pos),
336338
placer, node, itemstack, pointed_thing)
337339

0 commit comments

Comments
 (0)
Please sign in to comment.