Removes a redundant var from a few machines (#21424)

* changes to vars

* map edits

* Empty commit

* Update code/modules/mining/machine_processing.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* Update code/modules/mining/machine_processing.dm

Co-authored-by: warriorstar-orion <orion@snowfrost.garden>

* le changes

* error

---------

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Co-authored-by: warriorstar-orion <orion@snowfrost.garden>
This commit is contained in:
S34N
2023-07-20 12:58:01 -05:00
committed by GitHub
co-authored by Luc warriorstar-orion
parent b7b055927e
commit 1459795807
6 changed files with 23 additions and 29 deletions
+5 -5
View File
@@ -8,15 +8,15 @@
density = FALSE
anchored = TRUE
var/obj/machinery/mineral/stacking_machine/machine
var/machinedir = SOUTHEAST
/obj/machinery/mineral/stacking_unit_console/Initialize(mapload)
. = ..()
machine = locate(/obj/machinery/mineral/stacking_machine, get_step(src, machinedir))
if(machine)
for(var/obj/machinery/mineral/stacking_machine/found_machine in range(1, src))
machine = found_machine
machine.console = src
else
return INITIALIZE_HINT_QDEL
return
CRASH("[src] failed to link to a stacking machine!")
/obj/machinery/mineral/stacking_unit_console/Destroy()
if(machine)