From ee1be3599cf2a7d6c1b543d90a9507a6df5fc3cd Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Mon, 18 Nov 2013 21:01:41 +0100 Subject: [PATCH] .length doesn't start at 0 --- .../java/com/gmail/nossr50/config/mods/CustomBlockConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);