Assume that block data = 0 if there isn't one in the config

This commit is contained in:
TfT_02 2013-11-18 20:48:37 +01:00
parent 2b81b8daeb
commit 12a6aca8cd

View File

@ -83,7 +83,7 @@ public class CustomBlockConfig extends ConfigLoader {
continue; continue;
} }
byte blockData = Byte.valueOf(blockInfo[1]); byte blockData = (blockInfo.length == 1) ? Byte.valueOf(blockInfo[1]) : 0;
MaterialData blockMaterialData = new MaterialData(blockMaterial, blockData); MaterialData blockMaterialData = new MaterialData(blockMaterial, blockData);
blockList.add(blockMaterialData); blockList.add(blockMaterialData);