mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-28 19:11:22 +00:00
Mining runtime fix (#1757)
* Check if the console is set before processing the stacking machine. If the console is not set, the stacking machine deletes itself (as does the console if it cant find the stacking machine in the specified direction) Signed-off-by: Werner <werner@myhomenet.at> * Change default direction Signed-off-by: Werner <werner@myhomenet.at> * Correctly maps in the processing machine console Signed-off-by: Werner <werner@myhomenet.at>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
anchored = 1
|
||||
|
||||
var/obj/machinery/mineral/processing_unit/machine = null
|
||||
var/machinedir = EAST
|
||||
var/machinedir = NORTHEAST
|
||||
var/show_all_ores = 0
|
||||
|
||||
/obj/machinery/mineral/processing_unit_console/New()
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
density = 1
|
||||
anchored = 1
|
||||
var/obj/machinery/mineral/stacking_machine/machine = null
|
||||
var/machinedir = SOUTHEAST
|
||||
var/machinedir = NORTHEAST
|
||||
|
||||
/obj/machinery/mineral/stacking_unit_console/New()
|
||||
|
||||
@@ -105,6 +105,10 @@
|
||||
return
|
||||
|
||||
/obj/machinery/mineral/stacking_machine/process()
|
||||
if(!console)
|
||||
log_debug("Stacking machine tried to process, but no console has linked itself to it.")
|
||||
qdel(src)
|
||||
return
|
||||
if (src.output && src.input)
|
||||
var/turf/T = get_turf(input)
|
||||
for(var/obj/item/O in T.contents)
|
||||
|
||||
Reference in New Issue
Block a user