1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 11:45:51 +00:00

Fixed ChestTerminal Lore

This commit is contained in:
TheBusyBiscuit 2017-12-29 11:54:23 +01:00 committed by GitHub
parent 0c76e1978f
commit f9f4648303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -401,9 +401,9 @@ public class CargoNet {
ItemMeta im = stack.getItemMeta(); ItemMeta im = stack.getItemMeta();
List<String> lore = new ArrayList<String>(); List<String> lore = new ArrayList<String>();
lore.add(""); lore.add("");
lore.add("&7Stored Items: &r" + DoubleHandler.getFancyDouble(item.getAmount())); lore.add(ChatColor.translateAlternateColorCodes("&7Stored Items: &r" + DoubleHandler.getFancyDouble(item.getAmount())));
if (stack.getMaxStackSize() > 1) lore.add("&7<Left Click: Request 1 | Right Click: Request " + (item.getAmount() > stack.getMaxStackSize() ? stack.getMaxStackSize(): item.getAmount()) + ">"); if (stack.getMaxStackSize() > 1) lore.add(ChatColor.translateAlternateColorCodes("&7<Left Click: Request 1 | Right Click: Request " + (item.getAmount() > stack.getMaxStackSize() ? stack.getMaxStackSize(): item.getAmount()) + ">"));
else lore.add("&7<Left Click: Request 1>"); else lore.add(ChatColor.translateAlternateColorCodes("&7<Left Click: Request 1>"));
lore.add(""); lore.add("");
if (im.hasLore()) { if (im.hasLore()) {
for (String line: im.getLore()) { for (String line: im.getLore()) {