fix jail hat

master
Aevann 2024-04-26 23:42:45 +03:00
parent 7a62c3fc4a
commit 9d4e930130
1 changed files with 2 additions and 1 deletions

View File

@ -391,7 +391,8 @@ class User(Base):
def forced_hat(self):
user_forced_hats = []
for k, val in forced_hats.items():
if getattr(self, k) and getattr(self, k) > 1:
get = getattr(self, k)
if get and (get == True or get > 1):
if isinstance(val[0], tuple):
user_forced_hats.append(random.choice(val))
else: