private void SetShadowCasterPatch() { var p = FindPatch(FinishedPatches, _highlightPatch.Line, _highlightPatch.Sample); MainWindow.SetShadowCasterRenderPatch(p != null ? p : _highlightPatch.RelativeTo(0, 0)); }