Merge branch 'main' into 'main'

Orientation after crash fix

See merge request cable-mc/cobblemon!2061
This commit is contained in:
Hiroku
2025-12-01 00:23:40 +00:00
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -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()
}
}
}