mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 16:39:33 +01:00
elytra and other non-combat armour don't take durability damage when the player is attacked
This commit is contained in:
parent
cd6da88b37
commit
1263c43b5d
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ mcl_damage.register_modifier(function(obj, damage, reason)
|
||||||
local itemname = itemstack:get_name()
|
local itemname = itemstack:get_name()
|
||||||
local enchantments = mcl_enchanting.get_enchantments(itemstack)
|
local enchantments = mcl_enchanting.get_enchantments(itemstack)
|
||||||
|
|
||||||
if not flags.bypasses_armor then
|
if not flags.bypasses_armor and minetest.get_item_group(itemname, "non_combat_armor") == 0 then
|
||||||
points = points + minetest.get_item_group(itemname, "mcl_armor_points")
|
points = points + minetest.get_item_group(itemname, "mcl_armor_points")
|
||||||
toughness = toughness + minetest.get_item_group(itemname, "mcl_armor_toughness")
|
toughness = toughness + minetest.get_item_group(itemname, "mcl_armor_toughness")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue