mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-19 00:45:27 +01:00
Minor cleanup
This commit is contained in:
parent
44a4448527
commit
fb75eac1f7
@ -68,7 +68,7 @@ public class CustomBlockConfig extends ConfigLoader {
|
|||||||
Material blockMaterial = Material.matchMaterial(blockInfo[0]);
|
Material blockMaterial = Material.matchMaterial(blockInfo[0]);
|
||||||
|
|
||||||
if (blockMaterial == null) {
|
if (blockMaterial == null) {
|
||||||
plugin.getLogger().warning("Invalid material name. This item will be skipped. - " + blockInfo[0]);
|
plugin.getLogger().warning("Invalid material name. [" + blockInfo[0] + "] This item will be skipped. - " + blockName);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,11 +76,11 @@ public class CustomBlockConfig extends ConfigLoader {
|
|||||||
String[] dataInfo = blockInfo[1].split("[-]");
|
String[] dataInfo = blockInfo[1].split("[-]");
|
||||||
|
|
||||||
if (dataInfo.length == 2) {
|
if (dataInfo.length == 2) {
|
||||||
byte startByte = Byte.valueOf(dataInfo[0]);
|
byte startData = Byte.valueOf(dataInfo[0]);
|
||||||
byte endByte = Byte.valueOf(dataInfo[1]);
|
byte endData = Byte.valueOf(dataInfo[1]);
|
||||||
|
|
||||||
for (byte i = startByte; i < endByte; i++) {
|
for (byte blockData = startData; blockData < endData; blockData++) {
|
||||||
MaterialData blockMaterialData = new MaterialData(blockMaterial, i);
|
MaterialData blockMaterialData = new MaterialData(blockMaterial, blockData);
|
||||||
loadBlock(skillType, blockList, blockName, blockMaterialData);
|
loadBlock(skillType, blockList, blockName, blockMaterialData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user