mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-23 04:47:34 +01:00
fixed crafting station message issue
This commit is contained in:
parent
0d7f331ad7
commit
52932b8c01
@ -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);
|
||||
|
||||
|
@ -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!"),
|
||||
|
Loading…
Reference in New Issue
Block a user