Merge pull request #103 from Cr0s/master

Fixed #102
This commit is contained in:
LemADEC 2015-10-31 22:40:04 +01:00
commit 5ef9ca9d43
2 changed files with 4 additions and 2 deletions

0
gradlew vendored Normal file → Executable file
View file

View file

@ -42,7 +42,9 @@ public class BlockLaserMedium extends BlockContainer {
return iconBuffer[8];
}
return iconBuffer[metadata];
int index = metadata >= iconBuffer.length ? iconBuffer.length - 1 : metadata;
return iconBuffer[index];
}
@Override
@ -69,4 +71,4 @@ public class BlockLaserMedium extends BlockContainer {
return false;
}
}
}