mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-03-21 15:21:21 +00:00
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
This commit is contained in:
parent
67b13a5942
commit
4ec0fd974b
1 changed files with 2 additions and 0 deletions
|
@ -332,6 +332,8 @@ function doors.register(name, def)
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
minetest.sound_play(def.sounds.place, {pos = pos})
|
||||||
|
|
||||||
on_place_node(pos, minetest.get_node(pos),
|
on_place_node(pos, minetest.get_node(pos),
|
||||||
placer, node, itemstack, pointed_thing)
|
placer, node, itemstack, pointed_thing)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue