summaryrefslogtreecommitdiff
path: root/item_drop/init.lua
diff options
context:
space:
mode:
authorRealBadAngel <mk@realbadangel.pl>2013-04-20 07:53:35 +0200
committerRealBadAngel <mk@realbadangel.pl>2013-04-20 07:53:35 +0200
commit0992a6a6fc1a5331ee6cea5ce42adb5cc71c8a86 (patch)
tree9ba94cec4d3c0aa52e1144f5e8fe0722e59fa755 /item_drop/init.lua
parent5db0041896c9d01f8edc5b7a2ec86ae9d50eb8e8 (diff)
bug fix
Diffstat (limited to 'item_drop/init.lua')
-rw-r--r--item_drop/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/item_drop/init.lua b/item_drop/init.lua
index 5033eca..8a7afe8 100644
--- a/item_drop/init.lua
+++ b/item_drop/init.lua
@@ -13,7 +13,7 @@ minetest.register_globalstep(function(dtime)
if obj.timer > time_pick then
inv:add_item("main", ItemStack(obj.itemstring))
if obj.itemstring ~= "" then
- minetest.sound_play("item_drop_pickup",gain = 1.0, max_hear_distance = 10)
+ minetest.sound_play("item_drop_pickup",{pos, gain = 1.0, max_hear_distance = 10})
end
if object:get_luaentity() then
object:get_luaentity().itemstring = ""