minetest-mods / 3d_armor

Visible player armor & wielded items for minetest
Other
17 stars 39 forks source link

don't trigger armor:punch when max_hp decreases #103

Closed fluxionary closed 1 year ago

fluxionary commented 1 year ago

currently, if max_hp decreases, and shield sounds are not disabled, i hear a "damage" ping, despite not technically taking damage. this PR checks that a negative hp change actually corresponds to lowering hp below the current maximum.