diff options
-rw-r--r-- | docs/release-notes.md | 1 | ||||
-rw-r--r-- | src/SMAPI/Framework/SGame.cs | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md index 2f5ecf5d..ab60c6f8 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -10,6 +10,7 @@ * Reloading the `Data\NPCDispositions` asset will now update affected NPCs. * Fixed some map tilesheets not editable if not playing in English. * Fixed newlines in most manifest fields not being ignored. + * Fixed `Display.RenderedWorld` event not invoked before overlays are rendered. * For the web UI: * Added stats to compatibility list. 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(); |