Skip to content

Commit

Permalink
bugfix: removes solar control duping (#6231)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladisvell authored Dec 6, 2024
1 parent a5f07fa commit 5822373
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/modules/power/solar.dm
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,12 @@
track = TRACKER_AUTO
autostart = TRUE // Automatically search for connected devices

/obj/machinery/power/solar_control/Initialize()
/obj/machinery/power/solar_control/Initialize(mapload, obj/structure/computerframe)
SSsun.solars |= src
setup()
. = ..()
if(computerframe)
qdel(computerframe)

/obj/machinery/power/solar_control/proc/setup()
connect_to_network()
Expand Down

0 comments on commit 5822373

Please sign in to comment.