mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 01:26:50 -04:00
EnvMapApperance should clear client animations, fixes #74.
This commit is contained in:
parent
9b7e12bb9d
commit
766943bd8c
@ -606,6 +606,7 @@ namespace ClassicalSharp {
|
||||
TexturePackExtractor extractor = new TexturePackExtractor();
|
||||
extractor.Extract( game.defaultTexPack, game );
|
||||
} else {
|
||||
game.Animations.Dispose();
|
||||
game.AsyncDownloader.DownloadImage( url, true, "terrain" );
|
||||
}
|
||||
Utils.LogDebug( "Image url: " + url );
|
||||
|
@ -29,7 +29,9 @@ namespace ClassicalSharp.TexturePack {
|
||||
if( bmp != null ) {
|
||||
fastBmp.Dispose();
|
||||
bmp.Dispose();
|
||||
bmp = null;
|
||||
}
|
||||
animations.Clear();
|
||||
}
|
||||
|
||||
public void Tick( double delta ) {
|
||||
|
@ -11,6 +11,7 @@ namespace ClassicalSharp.TexturePack {
|
||||
Game game;
|
||||
public void Extract( string path, Game game ) {
|
||||
this.game = game;
|
||||
game.Animations.Dispose();
|
||||
using( FileStream fs = new FileStream( path, FileMode.Open, FileAccess.Read, FileShare.Read ) ) {
|
||||
ZipReader reader = new ZipReader();
|
||||
reader.ShouldProcessZipEntry = ShouldProcessZipEntry;
|
||||
|
Loading…
x
Reference in New Issue
Block a user