diff --git a/rustplus/__init__.py b/rustplus/__init__.py index 5d0ad16..c97abfc 100644 --- a/rustplus/__init__.py +++ b/rustplus/__init__.py @@ -22,5 +22,5 @@ __name__ = "rustplus" __author__ = "olijeffers0n" -__version__ = "5.6.7" +__version__ = "5.6.8" __support__ = "Discord: https://discord.gg/nQqJe8qvP8" diff --git a/rustplus/utils/rust_utils.py b/rustplus/utils/rust_utils.py index b7b9fe1..c5df60e 100644 --- a/rustplus/utils/rust_utils.py +++ b/rustplus/utils/rust_utils.py @@ -183,7 +183,7 @@ def _get_grid_y(y, map_size): def _number_to_letters(num): power, mod = divmod(num, 26) - out = chr(64 + mod) if mod else (power, 'Z') + out = chr(64 + mod) if mod else (power, "Z") return _number_to_letters(power) + out if power else out @@ -194,11 +194,12 @@ def _get_corrected_map_size(map_size): def _is_outside_grid_system(x, y, map_size, offset=0): - return x < -offset or x > (map_size + offset) or y < -offset or y > (map_size + offset) + return ( + x < -offset or x > (map_size + offset) or y < -offset or y > (map_size + offset) + ) class HackyBackwardsCompatCoordClass: - def __init__(self, x, y): self.x = x self.y = y