projects
/
zefram
/
minetest
/
technic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
630db84
)
Bugfix
author
RealBadAngel
<mk@realbadangel.pl>
Sat, 25 May 2013 21:00:12 +0000
(23:00 +0200)
committer
RealBadAngel
<mk@realbadangel.pl>
Sat, 25 May 2013 21:00:12 +0000
(23:00 +0200)
item_drop/init.lua
patch
|
blob
|
history
diff --git
a/item_drop/init.lua
b/item_drop/init.lua
index db1f2a34e0cd118d60a7511d4efafba12bae34bd..54b617f79cb9fbf24654e9fe6df13850ee2d7121 100644
(file)
--- 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