mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-19 11:49:08 +00:00
Fix broken array-check in CraftingItem #43
This commit is contained in:
1 parent
d997586c8c
commit
9b03456c86
1 file changed
+1
-1
@@ -46,7 +46,7 @@ public class CraftingItem extends Item
|
||||
public IIcon getIconFromDamage (int meta)
|
||||
{
|
||||
int arr = MathHelper.clamp_int(meta, 0, unlocalizedNames.length);
|
||||
if(arr > icons.length)
|
||||
if(arr >= icons.length)
|
||||
return icons[0];
|
||||
return icons[arr];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user