From 7e956343e62ac2eac66dc22c546eaab12951dc31 Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+AnArgonianLizardThatStealsPRs@users.noreply.github.com> Date: Thu, 19 Oct 2023 12:03:26 +0300 Subject: [PATCH] [MIRROR] Fix APC cell removal runtime [MDB IGNORE] (#141) * Fix APC cell removal runtime (#79077) --------- Co-authored-by: SkyratBot <59378654+SkyratBot@users.noreply.github.com> 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()