Fixes missing cost message for extended salvage
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
This commit is contained in:
parent
cdb0f267a3
commit
1510960089
@ -256,7 +256,7 @@ public class ScrapperTrait extends CustomTrait<ScrapperSetting> {
|
|||||||
replacer.add("{item}", itemInHand.getType().name().toLowerCase().replace('_', ' '));
|
replacer.add("{item}", itemInHand.getType().name().toLowerCase().replace('_', ' '));
|
||||||
if (salvageMethod == SalvageMethod.ARMOR_TRIM) {
|
if (salvageMethod == SalvageMethod.ARMOR_TRIM) {
|
||||||
sendNPCMessage(this.npc, player, replacer.replace(getSettings().getArmorTrimCostMessage()));
|
sendNPCMessage(this.npc, player, replacer.replace(getSettings().getArmorTrimCostMessage()));
|
||||||
} else if (salvageMethod == SalvageMethod.SALVAGE) {
|
} else if (salvageMethod == SalvageMethod.SALVAGE || salvageMethod == SalvageMethod.EXTENDED_SALVAGE) {
|
||||||
String expectedYield;
|
String expectedYield;
|
||||||
if (ItemHelper.getDamage(itemInHand) <= 0) {
|
if (ItemHelper.getDamage(itemInHand) <= 0) {
|
||||||
expectedYield = getSettings().getFullSalvageMessage();
|
expectedYield = getSettings().getFullSalvageMessage();
|
||||||
@ -267,6 +267,8 @@ public class ScrapperTrait extends CustomTrait<ScrapperSetting> {
|
|||||||
sendNPCMessage(this.npc, player, replacer.replace(getSettings().getCostMessage()));
|
sendNPCMessage(this.npc, player, replacer.replace(getSettings().getCostMessage()));
|
||||||
} else if (salvageMethod == SalvageMethod.NETHERITE) {
|
} else if (salvageMethod == SalvageMethod.NETHERITE) {
|
||||||
sendNPCMessage(this.npc, player, replacer.replace(getSettings().getNetheriteCostMessage()));
|
sendNPCMessage(this.npc, player, replacer.replace(getSettings().getNetheriteCostMessage()));
|
||||||
|
} else {
|
||||||
|
BlacksmithPlugin.error("Unrecognized salvage method " + salvageMethod);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user