Clamped the hive getIcon to prevent crashes for people with ID conflicts

This commit is contained in:
Adubbz 2013-11-23 09:17:13 +11:00
parent 84a12fac6b
commit 8088e4a54a

View file

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