CBugDCoder / deltaglider

Add realistic hang gliders to Minetest
Other
4 stars 9 forks source link

Glider effects stay after death #4

Closed Lanhild closed 1 month ago

Lanhild commented 3 years ago

The lower gravity effect that comes when gliding with the glider can stay even after death when you jump on TNT while gliding.

To reproduce this bug:

Make a tnt tower, go on top, and once you lit it up, jump 4.5 - 3 seconds after and you will die -or explode with the tnt- after all this the low gravity effect stays even after the death, and even a speed boost is acquired.

This is due to the fact that the glider item is an entity, and when being destroyed by, for instance, TNT, so the physics of low gravity is kept.

you'd basically just have to invoke the correct detach method when the player has died