mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Use the experimental getArea.
Conflicts: code/modules/power/power.dm
This commit is contained in:
@@ -55,8 +55,8 @@
|
||||
// increment the power usage stats for an area
|
||||
|
||||
|
||||
/obj/machinery/proc/use_power(var/amount, var/chan = -1, var/autocalled = 0) // defaults to power_channel) // defaults to power_channel
|
||||
var/area/A = src.myArea
|
||||
/obj/machinery/proc/use_power(var/amount, var/chan = -1, var/autocalled = 0) // defaults to power_channel
|
||||
var/area/A = getArea()
|
||||
|
||||
if(!A || !isarea(A) || !A.master)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user