Fixed connected textures bug.
This commit is contained in:
parent
4147d05f45
commit
20b6a1f0d9
2 changed files with 6 additions and 0 deletions
|
@ -54,6 +54,9 @@ public class BlockBOPGrass extends Block
|
|||
@Override
|
||||
public Icon getIcon(int side, int meta)
|
||||
{
|
||||
if (side < 0 || side >= blockIcon.length)
|
||||
side = 1;
|
||||
|
||||
return blockIcon[meta][side];
|
||||
}
|
||||
|
||||
|
|
|
@ -41,6 +41,9 @@ public class BlockOriginGrass extends Block
|
|||
@Override
|
||||
public Icon getIcon(int par1, int par2)
|
||||
{
|
||||
if (par1 < 0 || par1 >= blockIcon.length)
|
||||
par1 = 1;
|
||||
|
||||
return blockIcon[par1];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue