diff --git a/src/main/java/cr0s/warpdrive/block/BlockLaserMedium.java b/src/main/java/cr0s/warpdrive/block/BlockLaserMedium.java index 8da69777..c0d02393 100644 --- a/src/main/java/cr0s/warpdrive/block/BlockLaserMedium.java +++ b/src/main/java/cr0s/warpdrive/block/BlockLaserMedium.java @@ -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