I haven't coded for the game but I've glanced over the function.
Its being called from the game. Its not "patched" or shouldn't be. Unless they've either changed the contents of the function or are checking where calls to the function or from, etc.
Shouldn't be hard to update or get around
As i know , you are copy & paste master so it's going to be patched for you and working for us.