diff options
author | PilzAdam <adam-k@outlook.com> | 2012-10-01 20:00:00 +0200 |
---|---|---|
committer | PilzAdam <adam-k@outlook.com> | 2012-10-01 20:00:00 +0200 |
commit | 84bc111f0cebc0e28d5e6515ffe326f814c8c971 (patch) | |
tree | 0f4889a14b3d4a23454a3ac3d4f5b467c16826fb | |
parent | c63bbb0b882e2856114bf867d4d1aa8b4a626bb6 (diff) |
Play sound at the location of the destroyed item
-rw-r--r-- | init.lua | 2 | ||||
-rw-r--r-- | sounds/builtin_item_lava.ogg | bin | 24692 -> 37367 bytes |
2 files changed, 1 insertions, 1 deletions
@@ -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 Binary files differindex 2dca83f..5c293fe 100644 --- a/sounds/builtin_item_lava.ogg +++ b/sounds/builtin_item_lava.ogg |