mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-22 13:52:31 +01:00
Bugfix
This commit is contained in:
parent
630db84ad1
commit
0d81a3f42a
@ -4,6 +4,7 @@ time_pick = 3
|
||||
if technic.config:getBool("enable_item_pickup") then
|
||||
minetest.register_globalstep(function(dtime)
|
||||
for _,player in ipairs(minetest.get_connected_players()) do
|
||||
if player and player:get_hp() > 0 then
|
||||
local pos = player:getpos()
|
||||
pos.y = pos.y+0.5
|
||||
local inv = player:get_inventory()
|
||||
@ -26,6 +27,7 @@ if technic.config:getBool("enable_item_pickup") then
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user