summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 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