0
0
Fork 0

Placement sound for: torches and redstone torches

This commit is contained in:
Wuzzy 2017-02-19 20:41:35 +01:00
parent 3d2d31896f
commit 0e5ecc7624
1 changed files with 4 additions and 0 deletions

View File

@ -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
} }