mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 19:15:14 -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
@ -81,6 +81,7 @@ namespace ClassicalSharp.Renderers {
|
||||
|
||||
public void Refresh() {
|
||||
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