From 4ec426c34e34edbebe63b60475e868a91cfbb8e7 Mon Sep 17 00:00:00 2001 From: Yonokid <37304577+Yonokid@users.noreply.github.com> Date: Sat, 27 Dec 2025 18:46:08 -0500 Subject: [PATCH] Update texture.py --- libs/texture.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libs/texture.py b/libs/texture.py index 1c7246a..9ce5d5e 100644 --- a/libs/texture.py +++ b/libs/texture.py @@ -72,6 +72,13 @@ class TextureWrapper: self.animations: dict[int, BaseAnimation] = dict() self.skin_config: dict[str, SkinInfo] = dict() self.graphics_path = Path(f'Skins/{get_config()['paths']['skin']}/Graphics') + if not self.graphics_path.exists(): + logger.error("No skin has been configured") + self.screen_width = 1280 + self.screen_height = 720 + self.screen_scale = 1.0 + self.skin_config = dict() + return self.parent_graphics_path = Path(f'Skins/{get_config()['paths']['skin']}/Graphics') if not (self.graphics_path / "skin_config.json").exists(): raise Exception("skin is missing a skin_config.json")