Skip to content

Commit

Permalink
[MIRROR] Fix APC cell removal runtime [MDB IGNORE] (#141)
Browse files Browse the repository at this point in the history
* Fix APC cell removal runtime (#79077)
---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: MrMelbert <[email protected]>
  • Loading branch information
3 people authored Oct 19, 2023
1 parent f067613 commit 7e95634
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions code/modules/power/apc/apc_attack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions code/modules/power/apc/apc_main.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7e95634

Please sign in to comment.