From 85d883a144c5a7012e705c7b449ac248d1729a87 Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Sun, 9 Oct 2022 11:24:33 +0300 Subject: [PATCH] this isn't an actual error i should be checking for --- main.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.xml b/main.xml index 410f712..de9a206 100644 --- a/main.xml +++ b/main.xml @@ -251,7 +251,7 @@ local specialActorFrames = {} -- ones defined specifically; here for drawfunction jank function setDrawFunction(frame, func) - if not frame.__raw then error('uranium: cannot set actorframe drawfunction during module loadtime! put this in uranium.init or actor:addcommand(\'Init\', ...)', 2) end + --if not frame.__raw then error('uranium: cannot set actorframe drawfunction during module loadtime! put this in uranium.init or actor:addcommand(\'Init\', ...)', 2) end if not frame.SetDrawFunction then error('uranium: expected an actorframe but got something that doesn\'t even bother to implement SetDrawFunction', 2) end if type(func) ~= 'function' then error('uranium: tried to set a drawfunction to a.. ' .. type(func) .. '?? the hell', 2) end frame:SetDrawFunction(function()