fix 'begin must be called' sprite batch errors when using Display.RenderedWorld event

This commit is contained in:
Jesse Plamondon-Willard 2018-12-09 19:35:38 -05:00
parent 441ded8c9a
commit 3fef9bb2a5
No known key found for this signature in database
GPG Key ID: 7D7C8097B62033CE
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
## Upcoming release
* For players:
* Fixed error when a mod makes invalid changes to an NPC schedule.
* Fixed `Display.RenderedWorld` event broken in SMAPI 2.9.1.
## 2.9.1
* For players:

View File

@ -1422,8 +1422,8 @@ namespace StardewModdingAPI.Framework
}
Game1.spriteBatch.End();
}
this.Events.RenderedWorld.RaiseEmpty();
Game1.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, (DepthStencilState)null, (RasterizerState)null);
this.Events.RenderedWorld.RaiseEmpty();
if (Game1.drawGrid)
{
int num1 = -Game1.viewport.X % 64;