Use ephemeral sounds
This commit is contained in:
parent
b2c75acd68
commit
c5e4ec5e27
61 changed files with 123 additions and 122 deletions
|
@ -59,7 +59,7 @@ local function coral_on_place(itemstack, placer, pointed_thing)
|
|||
minetest.set_node(pos_under, node_under)
|
||||
local def_node = minetest.registered_nodes[node_under.name]
|
||||
if def_node.sounds then
|
||||
minetest.sound_play(def_node.sounds.place, { gain = 0.5, pos = pos_under })
|
||||
minetest.sound_play(def_node.sounds.place, { gain = 0.5, pos = pos_under }, true)
|
||||
end
|
||||
if not (minetest.settings:get_bool("creative_mode")) then
|
||||
itemstack:take_item()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue