this isn't an actual error i should be checking for
This commit is contained in:
parent
8262b62e4c
commit
85d883a144
2
main.xml
2
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()
|
||||
|
|
Loading…
Reference in New Issue