mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 14:08:31 +01:00
[MIRROR] Fix traitor uplinks not letting you buy items that aren't restricted [MDB IGNORE] (#9412)
* Fix restricted roles change breaking uplinks (#62772) * Fix traitor uplinks not letting you buy items that aren't restricted Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
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