mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 17:12:25 -05:00
Fix being unable to pick sprites when top tex id is not same as sides. (Thanks goodlyay)
This commit is contained in:
parent
fb3da95d1b
commit
c7c6e15b8d
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue