From 12a6aca8cdede5a829b86cb380aa95632f1d3be6 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Mon, 18 Nov 2013 20:48:37 +0100 Subject: [PATCH] Assume that block data = 0 if there isn't one in the config --- .../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 12f088e00..5beaf34d9 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 = Byte.valueOf(blockInfo[1]); + byte blockData = (blockInfo.length == 1) ? Byte.valueOf(blockInfo[1]) : 0; MaterialData blockMaterialData = new MaterialData(blockMaterial, blockData); blockList.add(blockMaterialData);