fix jail hat
parent
7a62c3fc4a
commit
9d4e930130
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue