mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
Added a range check to TConstructBlock.getIcon
Fixes http://pastebin.com/1hhKagD1
This commit is contained in:
1 parent
21153791dd
commit
1bafebf933
1 file changed
+1
-1
@@ -49,7 +49,7 @@ public class TConstructBlock extends Block
|
||||
@SideOnly(Side.CLIENT)
|
||||
public Icon getIcon (int side, int meta)
|
||||
{
|
||||
return icons[meta];
|
||||
return meta < icons.length ? icons[meta] : icons[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user