Fixed connected textures bug.

This commit is contained in:
Amnet 2013-06-02 11:27:05 +02:00
parent 4147d05f45
commit 20b6a1f0d9
2 changed files with 6 additions and 0 deletions

View file

@ -54,6 +54,9 @@ public class BlockBOPGrass extends Block
@Override @Override
public Icon getIcon(int side, int meta) public Icon getIcon(int side, int meta)
{ {
if (side < 0 || side >= blockIcon.length)
side = 1;
return blockIcon[meta][side]; return blockIcon[meta][side];
} }

View file

@ -41,6 +41,9 @@ public class BlockOriginGrass extends Block
@Override @Override
public Icon getIcon(int par1, int par2) public Icon getIcon(int par1, int par2)
{ {
if (par1 < 0 || par1 >= blockIcon.length)
par1 = 1;
return blockIcon[par1]; return blockIcon[par1];
} }