fix 'begin must be called' sprite batch errors when using Display.RenderedWorld event
This commit is contained in:
parent
441ded8c9a
commit
3fef9bb2a5
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue