Clamped the hive getIcon to prevent crashes for people with ID conflicts
This commit is contained in:
parent
84a12fac6b
commit
8088e4a54a
1 changed files with 3 additions and 0 deletions
|
@ -51,6 +51,9 @@ public class BlockHive extends Block
|
|||
@Override
|
||||
public Icon getIcon(int side, int meta)
|
||||
{
|
||||
if (meta < 0 || meta >= hiveTypes.length) {
|
||||
meta = 0;
|
||||
}
|
||||
return textures[meta];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue