diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2018-11-29 23:06:36 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2018-11-29 23:06:36 -0500 |
commit | dd15416d55a4ee6839e4343bc65cd3b08b467de7 (patch) | |
tree | 90e6a82bf8edeb26be9eaef6bfe60a8806c0f232 /src | |
parent | e58681f1bccb02a5aa079a54a981fa05e39260c9 (diff) | |
download | SMAPI-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.cs | 3 |
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(); |