Fix lighting hook when using multicore lighting