1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-16 15:30:30 +01:00

Reduce drop distance of reserved_items

This commit is contained in:
LeMagnesium 2015-07-28 20:26:04 +02:00
parent 3fd2d1bbf4
commit a4798a0308

View File

@ -153,12 +153,12 @@ minetest.register_globalstep(function(dtime)
inv:set_stack("main", i, "") inv:set_stack("main", i, "")
local pos = ref:getpos() local pos = ref:getpos()
pos.y = pos.y+2 pos.y = pos.y+2
pos.x = pos.x + math.random(-10,10) pos.x = pos.x + math.random(-6,6)
pos.z = pos.z + math.random(-10,10) pos.z = pos.z + math.random(-6,6)
minetest.after(1, function() minetest.after(1, function()
local item = minetest.add_item(pos, stack) local item = minetest.add_item(pos, stack)
if item then if item then
item:setvelocity({x = math.random(-10,10), y = math.random(1,7), z = math.random(-10,10)}) item:setvelocity({x = math.random(-5,5), y = math.random(1,7), z = math.random(-5,5)})
end end
end) end)
end end