DragonSurvivalTeam / DragonSurvival

Other
51 stars 39 forks source link

Dragon riding fixes #676

Closed seelderr closed 1 month ago

seelderr commented 1 month ago

-Refactor/simplification of riding eligibility logic -Passenger ID defaults to -1 instead of 0 to make sure we have a truly invalid ID when there is no passenger -You are allowed to ride a dragon if it is at least half of your size (this allows for multiple passengers stacked on top of each other, I tested this, it does work even when someone in the middle of the stack disconnects, changes dimension, etc...) -New messages for various ways that riding could fail -Removed unnecessary dimension change handling code (we are doing this already in PlayerLoginHandler) -Removed unnecessary check for mount eligibility in the StarBoneItem class (you will get dismounted anyways if your size changes since we are constantly checking eligibility) -No longer send player velocity data when mounted, as it causes major animation issues