Fixing issue #113.

This commit is contained in:
Amnet 2013-11-08 00:31:53 +01:00
parent 35b9c74e65
commit 28ac09bf2e

View file

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