mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 18:45:23 -04:00
Quick fix for some maps not loading in singleplayer.
This commit is contained in:
parent
ea997f2eae
commit
221dff8081
@ -69,7 +69,8 @@ namespace ClassicalSharp.Gui {
|
||||
}
|
||||
} catch( Exception ex ) {
|
||||
ErrorHandler.LogError( "loading map", ex );
|
||||
game.Chat.Add( "&e/client loadmap: Failed to load map \"" + path + "\"" );
|
||||
string file = Path.GetFileName( path );
|
||||
game.Chat.Add( "&e/client loadmap: Failed to load map \"" + file + "\"" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -74,14 +74,16 @@ namespace ClassicalSharp.Renderers {
|
||||
}
|
||||
|
||||
public void Refresh() {
|
||||
if( chunks != null && !game.World.IsNotLoaded ) {
|
||||
ClearChunkCache();
|
||||
CreateChunkCache();
|
||||
}
|
||||
chunkPos = new Vector3I( int.MaxValue );
|
||||
if( chunks == null || game.World.IsNotLoaded ) return;
|
||||
ClearChunkCache();
|
||||
CreateChunkCache();
|
||||
}
|
||||
|
||||
void RefreshBorders( int clipLevel ) {
|
||||
chunkPos = new Vector3I( int.MaxValue );
|
||||
if( chunks == null || game.World.IsNotLoaded ) return;
|
||||
|
||||
int index = 0;
|
||||
for( int z = 0; z < chunksZ; z++ )
|
||||
for( int y = 0; y < chunksY; y++ )
|
||||
@ -92,7 +94,6 @@ namespace ClassicalSharp.Renderers {
|
||||
DeleteChunk( unsortedChunks[index] );
|
||||
index++;
|
||||
}
|
||||
chunkPos = new Vector3I( int.MaxValue );
|
||||
}
|
||||
|
||||
void EnvVariableChanged( object sender, EnvVarEventArgs e ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user