diff --git a/src/main/java/com/gmail/nossr50/config/mods/CustomBlockConfig.java b/src/main/java/com/gmail/nossr50/config/mods/CustomBlockConfig.java index 5beaf34d9..6eaca7647 100644 --- a/src/main/java/com/gmail/nossr50/config/mods/CustomBlockConfig.java +++ b/src/main/java/com/gmail/nossr50/config/mods/CustomBlockConfig.java @@ -83,7 +83,7 @@ public class CustomBlockConfig extends ConfigLoader { continue; } - byte blockData = (blockInfo.length == 1) ? Byte.valueOf(blockInfo[1]) : 0; + byte blockData = (blockInfo.length == 2) ? Byte.valueOf(blockInfo[1]) : 0; MaterialData blockMaterialData = new MaterialData(blockMaterial, blockData); blockList.add(blockMaterialData);