Skip to content
Snippets Groups Projects
Commit 4ec0fd97 authored by Auke Kok's avatar Auke Kok Committed by Auke Kok
Browse files

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
parent 67b13a59
Branches
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment