.length doesn't start at 0

This commit is contained in:
TfT_02 2013-11-18 21:01:41 +01:00
parent 12a6aca8cd
commit ee1be3599c

View File

@ -83,7 +83,7 @@ public class CustomBlockConfig extends ConfigLoader {
continue; 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); MaterialData blockMaterialData = new MaterialData(blockMaterial, blockData);
blockList.add(blockMaterialData); blockList.add(blockMaterialData);