mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 03:55:05 +01:00
New chem dispenser interface, by Tobba.
Some sanity checking in power.dm, by Tobba. Updated changelog, by PETE YEAAAH. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2532 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
return 0
|
||||
|
||||
var/area/A = src.loc.loc // make sure it's in an area
|
||||
if(!A || !isarea(A))
|
||||
if(!A || !isarea(A) || !A.master)
|
||||
return 0 // if not, then not powered
|
||||
|
||||
return A.master.powered(chan) // return power status of the area
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
/obj/machinery/proc/use_power(var/amount, var/chan=EQUIP) // defaults to Equipment channel
|
||||
var/area/A = src.loc.loc // make sure it's in an area
|
||||
if(!A || !isarea(A))
|
||||
if(!A || !isarea(A) || !A.master)
|
||||
return
|
||||
|
||||
A.master.use_power(amount, chan)
|
||||
|
||||
Reference in New Issue
Block a user