mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 14:47:50 +01:00
[MIRROR] mass refactor of holder checks (#11155)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
54d0d16826
commit
7161a6c22e
@@ -541,7 +541,7 @@
|
||||
* For now, we do it this way because calling this on a canvas itself might cause issues due to the whole dimension thing.
|
||||
*/
|
||||
/obj/structure/sign/painting/proc/admin_lateload_painting(var/spawn_specific = 0, var/which_painting = 0)
|
||||
if(!usr.client.holder)
|
||||
if(!check_rights_for(usr.client, R_HOLDER))
|
||||
return 0
|
||||
if(spawn_specific && isnum(which_painting))
|
||||
var/list/painting = SSpersistence.all_paintings[which_painting]
|
||||
|
||||
@@ -640,7 +640,7 @@
|
||||
return
|
||||
if(!ismovable(AM))
|
||||
return
|
||||
if(!user.client?.holder)
|
||||
if(!check_rights_for(user.client, R_HOLDER))
|
||||
return
|
||||
if(changing_state)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user