diff options
author | RealBadAngel <mk@realbadangel.pl> | 2013-05-25 23:00:12 +0200 |
---|---|---|
committer | RealBadAngel <mk@realbadangel.pl> | 2013-05-25 23:00:12 +0200 |
commit | 0d81a3f42a96378ab0fa4d34737ad99de19b2f66 (patch) | |
tree | 380e7314a373ecf8b5cb77b7a5a974c1fa61a0a8 | |
parent | 630db84ad13682eadc0035c251febfa07353a969 (diff) |
Bugfix
-rw-r--r-- | item_drop/init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/item_drop/init.lua b/item_drop/init.lua index db1f2a3..54b617f 100644 --- a/item_drop/init.lua +++ b/item_drop/init.lua @@ -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 |