Skip to content

Commit

Permalink
Doors: place sound when placing a door.
Browse files Browse the repository at this point in the history
Due to door items being the thing that's placed, we need to
explicitly play a sound when placing a door.

Fixes #1363
  • Loading branch information
sofar committed Apr 29, 2017
1 parent 67b13a5 commit 4ec0fd9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mods/doors/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4ec0fd9

Please sign in to comment.