Placement sound for: torches and redstone torches
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