Sometimes twice the fall damage is applied #2183
Labels
bug
An *objective* unintended feature/mechanic that should be fixed
engine change
An issue that requires changes to the KAG engine
Description
On both client and server, I found that
onCollision()
inFallDamage.as
could be run twice on the same tick, with unchanged velocity and old velocity, if getting bounced to the ground onto a corner like in the screenshot below.The bug happens because of the corner I'm standing on. It does not happen if it's two blocks.
Because of the bug, you can take the same damage twice (1 heart instead of 0.5 hearts).
I'm not sure why it happens.
The text was updated successfully, but these errors were encountered: