From feaa0bbc88f3325348361bce640f31d3e7e2cb45 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 19 Oct 2023 09:41:22 +0200 Subject: [PATCH] [MIRROR] Fix APC cell removal runtime [MDB IGNORE] (#24427) * 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. * Fix APC cell removal runtime --------- Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> --- code/modules/power/apc/apc_attack.dm | 4 ---- code/modules/power/apc/apc_main.dm | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/code/modules/power/apc/apc_attack.dm b/code/modules/power/apc/apc_attack.dm index 3ff3d640c62..aaa63c05d85 100644 --- a/code/modules/power/apc/apc_attack.dm +++ b/code/modules/power/apc/apc_attack.dm @@ -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 diff --git a/code/modules/power/apc/apc_main.dm b/code/modules/power/apc/apc_main.dm index fb9fd389c17..cff658fa6ca 100644 --- a/code/modules/power/apc/apc_main.dm +++ b/code/modules/power/apc/apc_main.dm @@ -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()