mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user