Dont pick up items when dead

This commit is contained in:
PilzAdam 2013-03-10 17:58:04 +01:00
parent a41ddb6705
commit e0c61c2f77

@ -1,5 +1,6 @@
minetest.register_globalstep(function(dtime)
for _,player in ipairs(minetest.get_connected_players()) do
if player:get_hp() > 0 or not minetest.setting_getbool("enable_damage") then
local pos = player:getpos()
pos.y = pos.y+0.5
local inv = player:get_inventory()
@ -56,6 +57,7 @@ minetest.register_globalstep(function(dtime)
end
end
end
end
end)
function minetest.handle_node_drops(pos, drops, digger)