Tweaking Repair Comments + Anvils now use Name ID

This commit is contained in:
nossr50 2019-03-22 17:32:03 -07:00
parent 6e83763f22
commit 07ebf12ae2
12 changed files with 21 additions and 21 deletions

View File

@ -12,8 +12,8 @@ public class ConfigRepairGeneral {
public static final boolean ENCHANTED_ITEMS_REQUIRE_CONFIRM = true;
@Setting(value = "Anvil-Block-Material", comment = "The block used for mcMMO repairs." +
"Default value: "+"IRON_BLOCK")
private Material repairAnvilMaterial = Material.IRON_BLOCK;
"Default value: "+"minecraft:iron_block")
private String repairAnvilMaterial = Material.IRON_BLOCK.getKey().toString();
@Setting(value = "Anvil-Use-Sounds", comment = "If true, mcMMO will play a sound when a player uses an anvil." +
"\nDefault value: "+ANVIL_USE_SOUNDS_DEFAULT)
@ -33,7 +33,7 @@ public class ConfigRepairGeneral {
private boolean enchantedItemsRequireConfirm = ENCHANTED_ITEMS_REQUIRE_CONFIRM;
public Material getRepairAnvilMaterial() {
return repairAnvilMaterial;
return Material.matchMaterial(repairAnvilMaterial);
}
public boolean isAnvilUseSounds() {

View File

@ -11,8 +11,8 @@ public class ConfigSalvageGeneral {
public static final boolean ENCHANTED_ITEMS_REQUIRE_CONFIRM = true;
@Setting(value = "Anvil-Block-Material", comment = "The block used for mcMMO repairs." +
"Default value: "+"IRON_BLOCK")
private Material salvageAnvilMaterial = Material.GOLD_BLOCK;
"Default value: "+"gold_block")
private String salvageAnvilMaterial = Material.GOLD_BLOCK.getKey().toString();
@Setting(value = "Anvil-Use-Sounds", comment = "If true, mcMMO will play a sound when a player uses an anvil." +
"\nDefault value: "+ANVIL_USE_SOUNDS_DEFAULT)
@ -32,7 +32,7 @@ public class ConfigSalvageGeneral {
private boolean enchantedItemsRequireConfirm = ENCHANTED_ITEMS_REQUIRE_CONFIRM;
public Material getSalvageAnvilMaterial() {
return salvageAnvilMaterial;
return Material.matchMaterial(salvageAnvilMaterial);
}
public boolean isAnvilUseSounds() {