APercy / automobiles_pck

automobiles mod for minetest
MIT License
14 stars 8 forks source link

Fix standing in car bug #5

Closed MrRar closed 2 years ago

MrRar commented 2 years ago

Some times the sit animation is not applied when attaching a player to a car. If you try getting in and out of a car a few times you will notice. This PR fixes this problem by setting the animation 2 times. I did a fair amount of testing and never saw it fail.

This PR also adds player_api to the dependencies since it does seem to depend of player_api

Previously the code was attaching a riding player to the car every tick. This PR fixes that so it only attaches the player once.

MrRar commented 2 years ago

Seems like this is a regression in Minetest. I didnt have this problem when I made my automobiles mod in the old days. Now I test it and it has the same problem.