Made changes to the lighting logic so it can properly operate on just-created worlds

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>