Fixes inducers not working on some stuff due to missing get_cell() checks

This commit is contained in:
ShizCalev
2020-07-03 01:13:07 -04:00
parent 8d08014e08
commit c9b87df67e
5 changed files with 16 additions and 5 deletions

View File

@@ -28,8 +28,7 @@
/obj/item/modular_computer/get_cell()
var/obj/item/computer_hardware/battery/battery_module = all_components[MC_CELL]
if(battery_module && battery_module.battery)
return battery_module.battery
return battery_module?.get_cell()
// Used in following function to reduce copypaste
/obj/item/modular_computer/proc/power_failure()