mirror of
https://github.com/minetest-mods/item_drop.git
synced 2024-12-22 22:02:26 +01:00
Remove damage setting test
This commit is contained in:
parent
b06129c3a3
commit
6de1402ebc
3
init.lua
3
init.lua
@ -17,7 +17,6 @@ if minetest.settings:get_bool("item_drop.enable_item_pickup") ~= false then
|
|||||||
if key_triggered then
|
if key_triggered then
|
||||||
keytype = minetest.settings:get("item_drop.pickup_keytype") or "Sneak"
|
keytype = minetest.settings:get("item_drop.pickup_keytype") or "Sneak"
|
||||||
end
|
end
|
||||||
local damage_enabled = minetest.settings:get_bool("enable_damage")
|
|
||||||
|
|
||||||
local magnet_mode = magnet_radius > pickup_radius
|
local magnet_mode = magnet_radius > pickup_radius
|
||||||
local zero_velocity_mode = pickup_age == -1
|
local zero_velocity_mode = pickup_age == -1
|
||||||
@ -109,7 +108,7 @@ if minetest.settings:get_bool("item_drop.enable_item_pickup") ~= false then
|
|||||||
end
|
end
|
||||||
|
|
||||||
if keys_pressed == key_invert
|
if keys_pressed == key_invert
|
||||||
or (damage_enabled and player:get_hp() <= 0) then
|
or player:get_hp() <= 0 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user