summaryrefslogtreecommitdiff
path: root/item_drop/init.lua
diff options
context:
space:
mode:
authorkpoppel <poulsen.kim@gmail.com>2013-06-03 13:54:05 -0700
committerkpoppel <poulsen.kim@gmail.com>2013-06-03 13:54:05 -0700
commita9a8f3be3404f08de2a1cc1f133f3985c18cccb3 (patch)
treeddb0b30e67cad236b3c57f72fce3153256385e4b /item_drop/init.lua
parent6234e5de8328b9d02b2307c52bf91fb5b656d9db (diff)
parent7d890428f547758ffd907252b2effb1d743c02e4 (diff)
Merge pull request #3 from RealBadAngel/indev
Indev
Diffstat (limited to 'item_drop/init.lua')
-rw-r--r--item_drop/init.lua2
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