mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-10 07:41:16 +01:00
Block edits on cached movespeed modifiers (#95617)
This commit is contained in:
@@ -53,6 +53,12 @@ Key procs
|
||||
if(!id)
|
||||
id = "[type]" //We turn the path into a string.
|
||||
|
||||
/datum/movespeed_modifier/vv_edit_var(var_name, var_value)
|
||||
if(GLOB.movespeed_modification_cache[type] == src)
|
||||
return FALSE
|
||||
|
||||
return ..()
|
||||
|
||||
GLOBAL_LIST_EMPTY(movespeed_modification_cache)
|
||||
|
||||
/// Grabs a STATIC MODIFIER datum from cache. YOU MUST NEVER EDIT THESE DATUMS, OR IT WILL AFFECT ANYTHING ELSE USING IT TOO!
|
||||
|
||||
Reference in New Issue
Block a user