Code cleanup

This commit is contained in:
LemADEC 2015-11-03 04:31:47 +01:00
parent 5753064578
commit e892ed3557

View file

@ -42,9 +42,7 @@ public class BlockLaserMedium extends BlockContainer {
return iconBuffer[8];
}
int index = metadata >= iconBuffer.length ? iconBuffer.length - 1 : metadata;
return iconBuffer[index];
return iconBuffer[Math.min(metadata, 7)];
}
@Override