diff --git a/rlgym_tools/rocket_league/state_mutators/random_physics_mutator.py b/rlgym_tools/rocket_league/state_mutators/random_physics_mutator.py index 5b16aad..07b2e69 100644 --- a/rlgym_tools/rocket_league/state_mutators/random_physics_mutator.py +++ b/rlgym_tools/rocket_league/state_mutators/random_physics_mutator.py @@ -18,7 +18,7 @@ def apply(self, state: GameState, shared_info: Dict[str, Any]) -> None: [SIDE_WALL_X - padding, BACK_WALL_Y - padding, CEILING_Z - padding]) # Some checks to make sure we don't place it outside the field - if abs(new_pos[0]) + abs(new_pos) >= 8064 - padding: + if abs(new_pos[0]) + abs(new_pos[1]) >= 8064 - padding: continue close_to_wall = (abs(new_pos[0]) >= SIDE_WALL_X - RAMP_HEIGHT or abs(new_pos[1]) >= BACK_WALL_Y - RAMP_HEIGHT diff --git a/rlgym_tools/version.py b/rlgym_tools/version.py index 5aedd25..b272bb1 100644 --- a/rlgym_tools/version.py +++ b/rlgym_tools/version.py @@ -5,10 +5,13 @@ # 3) we can import it into your module module # https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package -__version__ = '2.2.0' +__version__ = '2.2.1' release_notes = { + '2.2.1': """ + - Fix error in RandomPhysicsMutator + """, '2.2.0': """ - Add V1 objects and V2 to V1 conversion functions. """,