mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-20 09:53:46 +01:00
Placement sound for: torches and redstone torches
This commit is contained in:
parent
3d2d31896f
commit
0e5ecc7624
@ -74,6 +74,10 @@ mcl_torches.register_torch = function(substring, description, icon, mesh_floor,
|
|||||||
itemstack = minetest.item_place(fakestack, placer, pointed_thing, wdir)
|
itemstack = minetest.item_place(fakestack, placer, pointed_thing, wdir)
|
||||||
itemstack:set_name(itemstring)
|
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
|
return itemstack
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user