Mojira Archive
MC-261957

Infinitely Lasting Absorption

I found a possible cause of the bug reported in MC-182497.

Through testing, I have found out that when running out of a higher level of absorption and having a lower one with a longer duration, the amount of absorption hearts will be the amount that the player would normally get from getting the lower-level effect, whether the player already lost all of their absorption hearts or kept all of them.

This might be because the game is acting like the player lost the lower-level effect, and then gained it back. For example, if the player has absorption 2 and a hidden effect of absorption 1 (which will mean they have 4 absorption hearts), then when the absorption 2 runs out, it will remove 2 hearts from the player (as though it is absorption 1), and then add them back. Then, when the absorption 1 runs out, they will lose 2 hearts again, leaving them with 2 hearts that will not decay unless they are damaged.

If the player has absorption 1 (which means they have 2 absorption hearts), when they gain absorption 2, it will subtract 4 absorption hearts (leaving them with 0 because that is the minimum), and then add 4 hearts, leaving them with the expected result (4 hearts), because max(2 - 2, 0) is the same as max(2 - 4, 0), making it difficult to notice in this case.

Duplicate

Brendan Blocker

2023-04-19, 12:43 AM

2023-10-04, 02:42 PM

2023-04-19, 02:18 PM

0

0

Unconfirmed

(Unassigned)

1.19.4

-