SpriteEditor.SpriteInfoBlock sib = SpriteEditor.sib[spt - 1];
SpriteEditor.SpriteInfoBlock sib = SpriteEditor.sib[spt];
    private void updateSpritePreview(int spt, int dir)    {        if (spt == 0)        {            this.spritePreview.setIcon(new ImageIcon());            return;        }        SpriteEditor.SpriteInfoBlock sib = SpriteEditor.sib[spt - 1];        int d = dir;        if (sib.numSprites > 9) switch (dir)        {            case 0:                d = 0;                break;            case 1:                d = 8;                break;            case 2:                d = 2;                break;            case 3:                d = 10;                break;            case 4:                d = 4;                break;            case 5:                d = 12;                break;            case 6:                d = 6;                break;            case 7:                d = 14;                break;        }        this.spritePreview.setIcon(new ImageIcon(zoomImage(            new SpriteEditor.Sprite(SpriteEditor.sib[spt - 1].getSpriteInfo(d),                this).getImage(), 2)));    }