From a7c623043415c26946fdc3b3a344f68bb83d4884 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 8 Apr 2022 14:34:57 +0200 Subject: [PATCH] suppress MlemGame deprecation warning for DrawEarly --- MLEM.Startup/MlemGame.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MLEM.Startup/MlemGame.cs b/MLEM.Startup/MlemGame.cs index ed83878..5aff196 100644 --- a/MLEM.Startup/MlemGame.cs +++ b/MLEM.Startup/MlemGame.cs @@ -114,7 +114,9 @@ namespace MLEM.Startup { this.PreDraw?.Invoke(this, gameTime); CoroutineHandler.RaiseEvent(CoroutineEvents.PreDraw); + #pragma warning disable CS0618 this.UiSystem.DrawEarly(gameTime, this.SpriteBatch); + #pragma warning restore CS0618 this.DoDraw(gameTime); this.UiSystem.Draw(gameTime, this.SpriteBatch);