mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 14:08:31 +01:00
Fix restricted roles change breaking uplinks (#62772)
This commit is contained in:
@@ -241,7 +241,7 @@
|
||||
return
|
||||
if (!user || user.incapacitated())
|
||||
return
|
||||
if(!(user.mind.assigned_role.title in U.restricted_roles))
|
||||
if(U.restricted_roles.len && !(user.mind.assigned_role.title in U.restricted_roles))
|
||||
return
|
||||
|
||||
if(telecrystals < U.cost || U.limited_stock == 0)
|
||||
|
||||
Reference in New Issue
Block a user