mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 14:46:46 +01:00
fix NPE for anvil, salvage block, detonator item
This commit is contained in:
parent
bdbda5587f
commit
22ca1863fd
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user