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:
Werner
2017-02-11 19:53:05 +01:00
committed by LordFowl
parent 6b5084bbe9
commit d1b43f6d44
4 changed files with 10 additions and 5 deletions

View File

@@ -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()

View File

@@ -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)