forked from mirrors/cobblemon
Merge branch 'main' into 'main'
Orientation after crash fix See merge request cable-mc/cobblemon!2061
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
### Changes
|
||||
|
||||
### Fixes
|
||||
- Fixed orientation not getting reset after crashing while flying and getting back on the Pokémon.
|
||||
- Fixed Furfrou not being trimmable on NeoForge.
|
||||
|
||||
### Developer
|
||||
|
||||
@@ -547,6 +547,11 @@ open class PokemonEntity(
|
||||
ifRidingAvailable { _, _, state -> pokemon.rideStamina = state.stamina.get() }
|
||||
ridingController?.context?.state?.reset()
|
||||
ridingAnimationData.clear()
|
||||
|
||||
// reset riding orientation
|
||||
if (this is OrientationControllable) {
|
||||
this.orientationController.reset()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user