mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 18:45:23 -04:00
Fix rare crash when terrain.png changes to a different size partway through the map loading.
This commit is contained in:
parent
b1a6e87d92
commit
10ca60c2d6
@ -80,7 +80,8 @@ namespace ClassicalSharp.Renderers {
|
||||
}
|
||||
|
||||
public void Refresh() {
|
||||
chunkPos = new Vector3I( int.MaxValue );
|
||||
chunkPos = new Vector3I( int.MaxValue );
|
||||
totalUsed = new int[game.TerrainAtlas1D.TexIds.Length];
|
||||
if( chunks == null || game.World.IsNotLoaded ) return;
|
||||
ClearChunkCache();
|
||||
CreateChunkCache();
|
||||
|
Loading…
x
Reference in New Issue
Block a user