deleting tablets no longer leaves batteries (#45342)

* battery

* fix
This commit is contained in:
Qustinnus
2019-07-23 01:38:37 +02:00
committed by Rob Bailey
parent 408ea5e06a
commit 968e69416c
@@ -12,6 +12,10 @@
battery = new battery_type(src)
..()
/obj/item/computer_hardware/battery/Destroy()
. = ..()
QDEL_NULL(battery)
/obj/item/computer_hardware/battery/handle_atom_del(atom/A)
if(A == battery)
try_eject(0, null, TRUE)