Fix issue with disappearing chunks on re-render
This commit is contained in:
parent
7b5154ff6f
commit
53987d2d52
@ -105,7 +105,6 @@ namespace TrueCraft.Client.Modules
|
||||
}
|
||||
}
|
||||
if (any)
|
||||
// In theory this would ready the chunks, but it doesn't work for some reason
|
||||
Game.FlushMainThreadActions();
|
||||
}
|
||||
|
||||
|
@ -250,14 +250,17 @@ namespace TrueCraft.Client
|
||||
public void FlushMainThreadActions()
|
||||
{
|
||||
Action action;
|
||||
if (PendingMainThreadActions.TryTake(out action))
|
||||
while (PendingMainThreadActions.TryTake(out action))
|
||||
action();
|
||||
}
|
||||
|
||||
protected override void Update(GameTime gameTime)
|
||||
{
|
||||
GameTime = gameTime;
|
||||
FlushMainThreadActions();
|
||||
|
||||
Action action;
|
||||
if (PendingMainThreadActions.TryTake(out action))
|
||||
action();
|
||||
|
||||
IChunk chunk;
|
||||
var adjusted = Client.World.World.FindBlockPosition(
|
||||
|
Loading…
x
Reference in New Issue
Block a user