summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPilzAdam <adam-k@outlook.com>2012-10-01 20:00:00 +0200
committerPilzAdam <adam-k@outlook.com>2012-10-01 20:00:00 +0200
commit84bc111f0cebc0e28d5e6515ffe326f814c8c971 (patch)
tree0f4889a14b3d4a23454a3ac3d4f5b467c16826fb
parentc63bbb0b882e2856114bf867d4d1aa8b4a626bb6 (diff)
Play sound at the location of the destroyed item
-rw-r--r--init.lua2
-rw-r--r--sounds/builtin_item_lava.oggbin24692 -> 37367 bytes
2 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 20cc5fa..a91b5e7 100644
--- a/init.lua
+++ b/init.lua
@@ -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
diff --git a/sounds/builtin_item_lava.ogg b/sounds/builtin_item_lava.ogg
index 2dca83f..5c293fe 100644
--- a/sounds/builtin_item_lava.ogg
+++ b/sounds/builtin_item_lava.ogg
Binary files differ