Code cleanup
This commit is contained in:
parent
5753064578
commit
e892ed3557
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue