only build vanilla sprite data once correctly

This commit is contained in:
Fabian Dill 2021-04-28 02:39:55 +02:00
parent b8c7d6a72f
commit 4fc1ce77ac
1 changed files with 1 additions and 1 deletions

View File

@ -513,7 +513,7 @@ class Sprite():
author_name: Optional[str] = None
def __init__(self, filename):
if not hasattr(Sprite, "palette"):
if not hasattr(Sprite, "base_data"):
self.get_vanilla_sprite_data()
with open(filename, 'rb') as file:
filedata = file.read()