Fix hang-glider falldamage#53
Conversation
|
Does the player take fall damage while still gliding? |
|
@tiffit thank you <3 Just got changes up with a simple falldamagehandler listening for fall event -- if glider is actively deployed event is cancelled so no fall damage Edit: accumulation 🤦♂️ , converted to draft for moment while I work on fixing |
f1ed823 to
bce7f43
Compare
|
@tiffit the issue was that right-click while gliding to undeploy was sometimes hitting the wrong glider because the client and server weren’t pointing at the same instance, This caused the server-side glider to stay alive and keep looping onUpdate which kept resetting fall damage, Now it directly finds the active glider entity before calling setDead(), so the correct one is removed and the loop stops properly :D |
fixes GTNewHorizons/GT-New-Horizons-Modpack#25168
Removes 1 simple line to re-enable fall damage from unequipping glider while flying but having glider in said hand