summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-11-29 23:06:36 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2018-11-29 23:06:36 -0500
commitdd15416d55a4ee6839e4343bc65cd3b08b467de7 (patch)
tree90e6a82bf8edeb26be9eaef6bfe60a8806c0f232 /src
parente58681f1bccb02a5aa079a54a981fa05e39260c9 (diff)
downloadSMAPI-dd15416d55a4ee6839e4343bc65cd3b08b467de7.tar.gz
SMAPI-dd15416d55a4ee6839e4343bc65cd3b08b467de7.tar.bz2
SMAPI-dd15416d55a4ee6839e4343bc65cd3b08b467de7.zip
fix RenderedWorld event not invoked before overlays are rendered
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI/Framework/SGame.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/SGame.cs b/src/SMAPI/Framework/SGame.cs
index 9c6ff4dd..f76245a2 100644
--- a/src/SMAPI/Framework/SGame.cs
+++ b/src/SMAPI/Framework/SGame.cs
@@ -1345,6 +1345,7 @@ namespace StardewModdingAPI.Framework
}
Game1.spriteBatch.End();
}
+ this.Events.RenderedWorld.RaiseEmpty();
Game1.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, (DepthStencilState)null, (RasterizerState)null);
if (Game1.drawGrid)
{
@@ -1532,7 +1533,7 @@ namespace StardewModdingAPI.Framework
string s = Game1.content.LoadString("Strings\\StringsFromCSFiles:DayTimeMoneyBox.cs.10378");
SpriteText.drawStringWithScrollBackground(Game1.spriteBatch, s, 96, 32, "", 1f, -1);
}
- this.Events.RenderedWorld.RaiseEmpty();
+
this.Events.Rendered.RaiseEmpty();
this.Events.Legacy_OnPostRenderEvent.Raise();
Game1.spriteBatch.End();