Merge pull request #10157 from Ghommie/Ghommie-cit452

Ports "Fixes powernet avail checks"
This commit is contained in:
Putnam3145
2019-12-17 11:33:33 -08:00
committed by GitHub
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -1113,9 +1113,9 @@
if(terminal && terminal.powernet)
terminal.add_load(amount)
/obj/machinery/power/apc/avail()
/obj/machinery/power/apc/avail(amount)
if(terminal)
return terminal.avail()
return terminal.avail(amount)
else
return 0