fix jail hat

pull/226/head
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): def forced_hat(self):
user_forced_hats = [] user_forced_hats = []
for k, val in forced_hats.items(): 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): if isinstance(val[0], tuple):
user_forced_hats.append(random.choice(val)) user_forced_hats.append(random.choice(val))
else: else: