Moved registerCreatureEvent to compat.lua