Disable item pickup age if the player has to hold a key for taking items

This commit is contained in:
Hybrid Dog 2017-09-16 12:57:21 +02:00
parent 70068fd307
commit 3d88b7b5c6
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@ if minetest.settings:get_bool("item_drop.enable_item_pickup") ~= false then
local keytype
if key_triggered then
keytype = minetest.settings:get("item_drop.pickup_keytype") or "Use"
-- disable pickup age if picking is explicitly enabled by the player
if not key_invert then
pickup_age = math.min(pickup_age, 0)
end
end
local magnet_mode = magnet_radius > pickup_radius