diff --git a/gradlew b/gradlew old mode 100644 new mode 100755 diff --git a/src/main/java/cr0s/warpdrive/block/BlockLaserMedium.java b/src/main/java/cr0s/warpdrive/block/BlockLaserMedium.java index fba344d8..8da69777 100644 --- a/src/main/java/cr0s/warpdrive/block/BlockLaserMedium.java +++ b/src/main/java/cr0s/warpdrive/block/BlockLaserMedium.java @@ -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; } -} \ No newline at end of file +}