Skip to content

Commit

Permalink
Fix exceptions when generating a new world
Browse files Browse the repository at this point in the history
  • Loading branch information
Zetrith committed Jul 11, 2021
1 parent 519b93b commit 78c6282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/DynamicDrawPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static class OverlayDrawerPatch
static IEnumerable<MethodBase> TargetMethods()
{
foreach (var m in AccessTools.GetDeclaredMethods(typeof(OverlayDrawer)))
if (m.GetParameters().Length > 0 && m.GetParameters()[0].ParameterType == typeof(Thing))
if (m.Name.StartsWith("Render") && m.GetParameters().Length > 0 && m.GetParameters()[0].ParameterType == typeof(Thing))
yield return m;
}

Expand Down

0 comments on commit 78c6282

Please sign in to comment.