mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 05:06:45 +01:00
Assume that block data = 0 if there isn't one in the config
This commit is contained in:
parent
2b81b8daeb
commit
12a6aca8cd
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user