mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-28 03:53:01 +00:00
Placement sound for: torches and redstone torches
This commit is contained in:
parent
3d2d31896f
commit
0e5ecc7624
1 changed files with 4 additions and 0 deletions
|
@ -74,6 +74,10 @@ mcl_torches.register_torch = function(substring, description, icon, mesh_floor,
|
|||
itemstack = minetest.item_place(fakestack, placer, pointed_thing, wdir)
|
||||
itemstack:set_name(itemstring)
|
||||
|
||||
local idef = itemstack:get_definition()
|
||||
if idef.sounds and idef.sounds.place then
|
||||
minetest.sound_play(idef.sounds.place, {pos=under, gain=1})
|
||||
end
|
||||
return itemstack
|
||||
end
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue