range fix again

This commit is contained in:
RealBadAngel 2013-04-20 08:13:58 +02:00
parent 0518993e5d
commit 85f2692ef0

View File

@ -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",{pos, gain = 1.0, max_hear_distance = 10})
minetest.sound_play("item_drop_pickup",{pos = pos, gain = 1.0, max_hear_distance = 10})
end
if object:get_luaentity() then
object:get_luaentity().itemstring = ""