fix NPE for anvil, salvage block, detonator item

This commit is contained in:
nossr50 2019-02-26 11:37:21 -08:00
parent bdbda5587f
commit 22ca1863fd

View File

@ -1003,7 +1003,8 @@ public class MainConfig extends ConfigValidated {
/* Mining */ /* Mining */
public Material getDetonatorItem() { public Material getDetonatorItem() {
return Material.matchMaterial(getStringValue(SKILLS, MINING, DETONATOR + NAME, FLINT_AND_STEEL)); //Flint and steel
return Material.matchMaterial(getStringValue(SKILLS, MINING, DETONATOR + NAME));
} }
/* Repair */ /* Repair */
@ -1020,7 +1021,8 @@ public class MainConfig extends ConfigValidated {
} }
public Material getRepairAnvilMaterial() { public Material getRepairAnvilMaterial() {
return Material.matchMaterial(getStringValue(SKILLS, REPAIR, ANVIL_MATERIAL, IRON_BLOCK)); //Iron block
return Material.matchMaterial(getStringValue(SKILLS, REPAIR, ANVIL_MATERIAL));
} }
public boolean getRepairConfirmRequired() { public boolean getRepairConfirmRequired() {
@ -1041,7 +1043,8 @@ public class MainConfig extends ConfigValidated {
} }
public Material getSalvageAnvilMaterial() { public Material getSalvageAnvilMaterial() {
return Material.matchMaterial(getStringValue(SKILLS, SALVAGE, ANVIL_MATERIAL, GOLD_BLOCK)); //Gold Block
return Material.matchMaterial(getStringValue(SKILLS, SALVAGE, ANVIL_MATERIAL));
} }
public boolean getSalvageConfirmRequired() { public boolean getSalvageConfirmRequired() {