Play sound at the location of the destroyed item

This commit is contained in:
PilzAdam 2012-10-01 20:00:00 +02:00
parent c63bbb0b88
commit 84bc111f0c
2 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ minetest.register_entity(":__builtin:item", {
local name = minetest.env:get_node(p).name
if name == "default:lava_flowing" or name == "default:lava_source" then
minetest.sound_play("builtin_item_lava", {to_object=self.object})
minetest.sound_play("builtin_item_lava", {pos=self.object:getpos()})
self.object:remove()
return
end

Binary file not shown.