mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 09:35:23 -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();
|
TexturePackExtractor extractor = new TexturePackExtractor();
|
||||||
extractor.Extract( game.defaultTexPack, game );
|
extractor.Extract( game.defaultTexPack, game );
|
||||||
} else {
|
} else {
|
||||||
|
game.Animations.Dispose();
|
||||||
game.AsyncDownloader.DownloadImage( url, true, "terrain" );
|
game.AsyncDownloader.DownloadImage( url, true, "terrain" );
|
||||||
}
|
}
|
||||||
Utils.LogDebug( "Image url: " + url );
|
Utils.LogDebug( "Image url: " + url );
|
||||||
|
@ -29,7 +29,9 @@ namespace ClassicalSharp.TexturePack {
|
|||||||
if( bmp != null ) {
|
if( bmp != null ) {
|
||||||
fastBmp.Dispose();
|
fastBmp.Dispose();
|
||||||
bmp.Dispose();
|
bmp.Dispose();
|
||||||
|
bmp = null;
|
||||||
}
|
}
|
||||||
|
animations.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Tick( double delta ) {
|
public void Tick( double delta ) {
|
||||||
|
@ -11,6 +11,7 @@ namespace ClassicalSharp.TexturePack {
|
|||||||
Game game;
|
Game game;
|
||||||
public void Extract( string path, Game game ) {
|
public void Extract( string path, Game game ) {
|
||||||
this.game = game;
|
this.game = game;
|
||||||
|
game.Animations.Dispose();
|
||||||
using( FileStream fs = new FileStream( path, FileMode.Open, FileAccess.Read, FileShare.Read ) ) {
|
using( FileStream fs = new FileStream( path, FileMode.Open, FileAccess.Read, FileShare.Read ) ) {
|
||||||
ZipReader reader = new ZipReader();
|
ZipReader reader = new ZipReader();
|
||||||
reader.ShouldProcessZipEntry = ShouldProcessZipEntry;
|
reader.ShouldProcessZipEntry = ShouldProcessZipEntry;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user