From c7c6e15b8d1dc7f7e3e50c259a962ec0c78a8db9 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sun, 29 May 2016 13:13:18 +1000 Subject: [PATCH] Fix being unable to pick sprites when top tex id is not same as sides. (Thanks goodlyay) --- ClassicalSharp/Blocks/BlockInfo.BoundsBox.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ClassicalSharp/Blocks/BlockInfo.BoundsBox.cs b/ClassicalSharp/Blocks/BlockInfo.BoundsBox.cs index 2ac0ffc06..3a9cf8764 100644 --- a/ClassicalSharp/Blocks/BlockInfo.BoundsBox.cs +++ b/ClassicalSharp/Blocks/BlockInfo.BoundsBox.cs @@ -50,7 +50,7 @@ namespace ClassicalSharp { static readonly Vector3 centre = new Vector3( 0.5f, 0, 0.5f ); internal void RecalculateBB( int block, FastBitmap fastBmp ) { int elemSize = fastBmp.Width / 16; - int texId = GetTextureLoc( (byte)block, Side.Top ); + int texId = GetTextureLoc( (byte)block, Side.Right ); int texX = texId & 0x0F, texY = texId >> 4; float topY = GetSpriteBB_TopY( elemSize, texX, texY, fastBmp );