added dirty to move + improved syntax

This commit is contained in:
2024-07-02 17:09:37 +02:00
parent 0077a768e8
commit 60416e447c
5 changed files with 30 additions and 23 deletions

View File

@ -8,6 +8,7 @@ Image.MAX_IMAGE_PIXELS = 200000000
MAP_SIZE = 1024
DEFAULT_PATH = os.path.join(platformdirs.user_cache_dir(appname="lycacraft-paths", appauthor="Lycacraft"), "maps")
def clamp(mn, value, mx):
return max(mn, min(mx, value))