Open aerozoic opened 7 years ago
I agree it's not great, however, the core does not give any indication of what has damaged the player. Ideally I would like to handle all armor damage on punch but not all mods use the proper api to apply damage and instead set the player HP directly :(
There is an issue somewhere for including a source of damage but until that is implemented, the best the armor mod could do is expose last_punch_time
though the api, that way other mods would be able to reset that for a given player, causing the HP damage to be ignored.
Thanks for your response. This is pretty much what i figured. Just thought i'd ask to be sure :) :large_orange_diamond:
As of https://github.com/minetest/minetest/commit/dfc81983491417c5cd1c99d7db05e421c409379d it may be possible to avoid this problem in future versions.
@stujones11 Any news on this issue? This also affects hunger with hunger_ng.
Seems it was not hard to fix.
From a logical standpoint it doesn't make sense. But i understand MT has it's limits. If i should have posted this on the hunger repo, sorry in advance! :large_orange_diamond: