This commit is contained in:
@@ -68,7 +68,7 @@ GLOBAL_LIST_EMPTY(conveyors_by_id)
|
||||
. = ..()
|
||||
|
||||
/obj/machinery/conveyor/vv_edit_var(var_name, var_value)
|
||||
if (var_name == "id")
|
||||
if (var_name == NAMEOF(src, id))
|
||||
// if "id" is varedited, update our list membership
|
||||
LAZYREMOVE(GLOB.conveyors_by_id[id], src)
|
||||
. = ..()
|
||||
@@ -243,7 +243,7 @@ GLOBAL_LIST_EMPTY(conveyors_by_id)
|
||||
. = ..()
|
||||
|
||||
/obj/machinery/conveyor_switch/vv_edit_var(var_name, var_value)
|
||||
if (var_name == "id")
|
||||
if (var_name == NAMEOF(src, id))
|
||||
// if "id" is varedited, update our list membership
|
||||
LAZYREMOVE(GLOB.conveyors_by_id[id], src)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user