fixed crafting station message issue

This commit is contained in:
Jules 2019-09-28 17:12:56 +02:00
parent 0d7f331ad7
commit 52932b8c01
2 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,7 @@ public class UpgradingRecipe extends Recipe {
}
if (random.nextDouble() > recipe.getUpgradeData().getSuccess()) {
Message.UPGRADE_FAIL.format(ChatColor.RED).send(data.getPlayer());
Message.UPGRADE_FAIL_STATION.format(ChatColor.RED).send(data.getPlayer());
if (recipe.getUpgradeData().destroysOnFail())
recipe.getUpgraded().setAmount(recipe.getUpgraded().getAmount() - 1);

View File

@ -61,6 +61,7 @@ public enum Message {
CANT_UPGRADED_STACK("You can't upgrade stacked items."),
MAX_UPGRADES_HIT("This item cannot be upgraded anymore."),
UPGRADE_FAIL("Your upgrade failed and you lost your consumable."),
UPGRADE_FAIL_STATION("Your upgrade failed and you lost your materials."),
WRONG_UPGRADE_REFERENCE("You cannot upgrade this item with this consumable."),
UPGRADE_SUCCESS("You successfully upgraded your &6#item#&e!"),
NOT_HAVE_ITEM_UPGRADE("You don't have the item to upgrade!"),