Ports "Fixes powernet avail checks"

This commit is contained in:
Ghommie
2019-12-12 17:35:35 +01:00
parent f637e1e060
commit bc2e6a7f9b
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -46,9 +46,9 @@
else
return 0
/obj/machinery/power/proc/avail()
/obj/machinery/power/proc/avail(amount)
if(powernet)
return powernet.avail
return amount ? powernet.avail >= amount : powernet.avail
else
return 0