[1.15.2] Player still takes damage on safety net edge
Bees-Please opened this issue ยท 2 comments
Hmm... This seems to be another quirk with vanilla methods for these blocks.
onFallenUpon
and onLanding
both seem to have the same disparity when checking where you landed: the hitbox governs their call, but they check your coordinate instead of the collided block. So if your hitbox landed by the net, but you were just outside of its full coordinate (net at 1.0 X, you at 0.9 X), the game doesn't think the net was your landing spot, so it never gets the chance to set your fall damage to zero. Vanilla blocks like beds and slime blocks suffer the same problem.
I could probably fix this by doing my own form of hitbox checking, instead of depending on vanilla methods, but not sure how to do that yet, or how hacky it would be. I'll keep this in mind.
This is a rather old issue, and I couldn't find much on how to fix it for Safety Nets.
There seems to be a config option directly in Forge for changing how bounce collisions are handled (to use hitboxes instead of coordinates), so this seems like a more global problem; I'll be closing it as a "won't fix". Thanks for reporting anyway!