Skip to content

Commit

Permalink
fix: fix machine gui lore
Browse files Browse the repository at this point in the history
  • Loading branch information
ybw0014 committed Oct 27, 2023
1 parent f06ef91 commit 85b3435
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import io.github.thebusybiscuit.slimefun4.core.networks.energy.EnergyNetComponentType;
import io.github.thebusybiscuit.slimefun4.libraries.dough.blocks.BlockPosition;
import io.github.thebusybiscuit.slimefun4.utils.ChestMenuUtils;
import io.github.thebusybiscuit.slimefun4.utils.LoreBuilder;

import me.mrCookieSlime.Slimefun.api.inventory.BlockMenu;
import me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset;
Expand Down Expand Up @@ -131,7 +132,8 @@ protected void setup(@Nonnull BlockMenuPreset preset) {

ItemStack craftItem = ItemUtil.appendLore(
getCraftItem(),
FastMachines.getLocalization().getString("lores.per-craft")
"",
LoreBuilder.power(energyPerUse.getValue(), FastMachines.getLocalization().getString("lores.per-craft"))
);
preset.addItem(CRAFT_SLOT, craftItem, ChestMenuUtils.getEmptyClickHandler());
}
Expand Down
16 changes: 8 additions & 8 deletions src/main/resources/lang/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ categories:
items:
# gui items
CHOICE_INDICATOR:
name: "&eChosen item"
name: "&eSelected item"
lore:
- "&7You have chosen the item below to be made."
- "&7You have selected the item below to be crafted."
SCROLL_UP:
name: "&eScroll up"
lore:
Expand All @@ -32,7 +32,11 @@ items:
- "&7all the available outputs will be shown."
- ""
- "&7Select an item, then click on 'Craft' below."
- "&7The outputs will fill the 4th row."
- "&7The outputs will fill the bottom rows."
- ""
- "&cIf the possible output amount does not satisfy"
- "&cthe requested amount, the crafting will provide"
- "&cmaximum possible amount of the item."
CRAFT:
name: "&aCraft"
lore:
Expand All @@ -42,10 +46,6 @@ items:
- "&7Right Click: 16 times"
- "&7Shift + Left Click: 64 times"
- "&7Shift + Right Click: as many as possible"
- ""
- "&cIf the possible output amount does not satisfy"
- "&cthe requested amount, the crafting will provide"
- "&cmaximum possible amount of the item."
NO_ITEM:
name: "&cNo Item selected"
lore: []
Expand Down Expand Up @@ -128,7 +128,7 @@ items:
- "&7Craft without need to put items in order."

lores:
per-craft: " per craft"
per-craft: " &cper craft"

messages:
not-enough-energy: "&cNot enough energy!"
Expand Down

0 comments on commit 85b3435

Please sign in to comment.