From 3d114d0e4ecd809dc7aed2f2e5acba508a71bacb Mon Sep 17 00:00:00 2001 From: SabreML <57483089+SabreML@users.noreply.github.com> Date: Thu, 19 Aug 2021 14:14:42 +0100 Subject: [PATCH] Privatisation Still possible to call this improperly, but a lot harder. --- code/modules/power/lighting.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm index 9d9ffd4af19..cb605bf2beb 100644 --- a/code/modules/power/lighting.dm +++ b/code/modules/power/lighting.dm @@ -329,12 +329,13 @@ /** * The actual proc to turn on the lightbulb. * - * Do not call directly, use [/obj/machinery/light/proc/update] instead. + * Private proc, do not call directly. Use [/obj/machinery/light/proc/update] instead. * * Sets the light power, range, and colour based on environmental conditions such as night shift and fire alarms. * Also handles light bulbs burning out and exploding if `trigger` is `TRUE`. */ /obj/machinery/light/proc/_turn_on(trigger, play_sound = TRUE) + PRIVATE_PROC(TRUE) if(QDELETED(src)) return turning_on = FALSE