mirror of
https://github.com/minetest-mods/item_drop.git
synced 2024-12-22 22:02:26 +01:00
Disable item pickup age if the player has to hold a key for taking items
This commit is contained in:
parent
70068fd307
commit
3d88b7b5c6
4
init.lua
4
init.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user