What the FUCK javascript? WHAT THE FUCK!?
You must log in or # to comment.
Unless you explicitly state the return value, JS returns undefined as the return value for functions, - might be what's happening if your code is otherwise working/doing stuff.
Oh no, it just pretends it doesn't exist.
Egh. Whatever. I just bodged a try statement in there. Not the proper fix, but the issue only crops up when theres a lot of lighting updates happen.