Fix APC cell removal runtime (#79077)

## About The Pull Request

Someone implemented `Exited` but didn't remove this code, it's not
necessary and all it does is runtime now.
This commit is contained in:
MrMelbert
2023-10-18 23:05:52 -06:00
committed by GitHub
parent 086f854136
commit 54e3a3aefc
2 changed files with 1 additions and 4 deletions
-4
View File
@@ -260,10 +260,6 @@
user.visible_message(span_notice("[user] removes \the [cell] from [src]!"))
balloon_alert(user, "cell removed")
user.put_in_hands(cell)
cell.update_appearance()
cell = null
charging = APC_NOT_CHARGING
update_appearance()
return
if((machine_stat & MAINT) && !opened) //no board; no interface
return
+1
View File
@@ -264,6 +264,7 @@
/obj/machinery/power/apc/Exited(atom/movable/gone, direction)
. = ..()
if(gone == cell)
cell.update_appearance()
cell = null
charging = APC_NOT_CHARGING
update_appearance()