From 4841e849237e57652fab5a31c996bc7fa54ee69d Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Fri, 20 May 2016 15:14:19 +1000 Subject: [PATCH] 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). --- ClassicalSharp/Audio/AudioPlayer.cs | 2 +- ClassicalSharp/Singleplayer/Physics.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ClassicalSharp/Audio/AudioPlayer.cs b/ClassicalSharp/Audio/AudioPlayer.cs index d58e49475..2db90176e 100644 --- a/ClassicalSharp/Audio/AudioPlayer.cs +++ b/ClassicalSharp/Audio/AudioPlayer.cs @@ -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; diff --git a/ClassicalSharp/Singleplayer/Physics.cs b/ClassicalSharp/Singleplayer/Physics.cs index c41877618..c6aac2382 100644 --- a/ClassicalSharp/Singleplayer/Physics.cs +++ b/ClassicalSharp/Singleplayer/Physics.cs @@ -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 ); } }