Fix sponge not properly updating blocks in singleplayer (Thanks andreja6), partially addresses #205. Fix music thread lagging on some computers due to not buffer enough data ahead of time (Thanks funzrey).

This commit is contained in:
UnknownShadow200 2016-05-20 15:14:19 +10:00
parent 65069f2f34
commit 4841e84923
2 changed files with 2 additions and 2 deletions

View file

@ -106,7 +106,7 @@ namespace ClassicalSharp.Audio {
Thread MakeThread( ThreadStart func, ref IAudioOutput output, string name ) {
output = GetPlatformOut();
output.Create( 5 );
output.Create( 10 );
Thread thread = new Thread( func );
thread.Name = name;

View file

@ -450,7 +450,7 @@ namespace ClassicalSharp.Singleplayer {
{
byte block = map.SafeGetBlock( xx, yy, zz );
if( block == (byte)Block.Water || block == (byte)Block.StillWater )
map.SetBlock( xx, yy, zz, (byte)Block.Air );
game.UpdateBlock( xx, yy, zz, (byte)Block.Air );
}
}