Skip to content

Commit 7af0070

Browse files
committed
only override buffer when the world is ready
This fixes drawing UI to the title screen (e.g. the Generic Mod Config Menu button).
1 parent 0bb9da5 commit 7af0070

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/SMAPI/Framework/SGame.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,10 @@ public override bool ShouldDrawOnBuffer()
157157
//
158158
// It's not clear why that happens, but there's little reason not to just using the buffer consistently and
159159
// avoid the issue.
160+
if (Context.IsWorldReady)
161+
return true;
160162

161-
return true;
163+
return base.ShouldDrawOnBuffer();
162164
}
163165

164166
/*********

0 commit comments

Comments
 (0)