mirror of
https://github.com/Sandstorm-Station/Sandstorm-Station-13.git
synced 2026-08-29 00:00:19 +01:00
Fixes circuit harvesting (#198)
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
if(istype(TR))
|
||||
switch(get_pin_data(IC_INPUT, 2))
|
||||
if(0)
|
||||
var/list/harvest_output = TR.myseed.harvest_userless()
|
||||
var/list/harvest_output = harvest(TR)
|
||||
for(var/i in 1 to length(harvest_output))
|
||||
harvest_output[i] = WEAKREF(harvest_output[i])
|
||||
|
||||
@@ -114,6 +114,13 @@
|
||||
TR.update_icon()
|
||||
activate_pin(2)
|
||||
|
||||
/obj/item/integrated_circuit/manipulation/plant_module/proc/harvest(obj/machinery/hydroponics/TR)
|
||||
if(TR.dead)
|
||||
TR.harvest_dead()
|
||||
return list()
|
||||
else
|
||||
return TR.myseed.harvest_userless()
|
||||
|
||||
/obj/item/integrated_circuit/manipulation/seed_extractor
|
||||
name = "seed extractor module"
|
||||
desc = "Used to extract seeds from grown produce."
|
||||
|
||||
Reference in New Issue
Block a user