Ports "Fixes powernet avail checks"
This commit is contained in:
@@ -217,9 +217,9 @@ By design, d1 is the smallest direction and d2 is the highest
|
||||
else
|
||||
return 0
|
||||
|
||||
/obj/structure/cable/proc/avail()
|
||||
/obj/structure/cable/proc/avail(amount)
|
||||
if(powernet)
|
||||
return powernet.avail
|
||||
return amount ? powernet.avail >= amount : powernet.avail
|
||||
else
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user