mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-24 01:52:24 -05:00
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:
parent
65069f2f34
commit
4841e84923
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue