From 84bc111f0cebc0e28d5e6515ffe326f814c8c971 Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Mon, 1 Oct 2012 20:00:00 +0200 Subject: Play sound at the location of the destroyed item --- init.lua | 2 +- sounds/builtin_item_lava.ogg | Bin 24692 -> 37367 bytes 2 files changed, 1 insertion(+), 1 deletion(-) 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 Binary files a/sounds/builtin_item_lava.ogg and b/sounds/builtin_item_lava.ogg differ -- cgit v1.2.3