mirror of
https://gitlab.com/cable-mc/cobblemon.git
synced 2026-10-27 04:26:27 -04:00
refresh entity dimensions when a battle starts
This commit is contained in:
@@ -488,6 +488,8 @@ open class PokemonEntity(
|
||||
if (battleId != null) {
|
||||
busyLocks.remove(BATTLE_LOCK) // Remove in case it's hopped across to another battle, don't want extra battle locks
|
||||
busyLocks.add(BATTLE_LOCK)
|
||||
// refresh dimensions in case this pokemon has a battlingEyeHeight
|
||||
refreshDimensions()
|
||||
brain.setMemory(CobblemonMemories.POKEMON_BATTLE, battleId)
|
||||
} else {
|
||||
busyLocks.remove(BATTLE_LOCK)
|
||||
|
||||
Reference in New Issue
Block a user