mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 20:15:35 -04:00
Fix sprite blocks not recalculating their selection box after reconnect.
This commit is contained in:
parent
67b1fb0b4a
commit
70a6e2fe1a
@ -90,6 +90,10 @@ namespace ClassicalSharp {
|
||||
for( int i = 0; i < DigSounds.Length; i++ ) DigSounds[i] = SoundType.None;
|
||||
for( int i = 0; i < StepSounds.Length; i++ ) StepSounds[i] = SoundType.None;
|
||||
Init();
|
||||
|
||||
// TODO: Make this part of TerrainAtlas2D maybe?
|
||||
using( FastBitmap fastBmp = new FastBitmap( game.TerrainAtlas.AtlasBitmap, true, true ) )
|
||||
RecalculateSpriteBB( fastBmp );
|
||||
}
|
||||
|
||||
public void Init() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user