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
Этот коммит содержится в:
Auke Kok
2017-04-28 21:09:07 -07:00
коммит произвёл Auke Kok
родитель 67b13a5942
Коммит 4ec0fd974b

Просмотреть файл

@@ -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)