less horrible naming

This commit is contained in:
xsmeths 2024-04-15 02:59:07 +01:00
parent fc0e3ef7c0
commit c76cbe8de8

View File

@ -27,11 +27,11 @@ public class VoucherMenu extends IconInv {
for (Voucher voucher : instance.getVoucherManager().getVouchers()) {
if (getInventory().firstEmpty() != -1) {
ItemStack voucherr = voucher.toItemStack();
ItemMeta vouchermeta = voucherr.getItemMeta();
vouchermeta.setDisplayName(ChatColor.translateAlternateColorCodes('&', voucher.getName()));
voucherr.setItemMeta(vouchermeta);
addIcon(getInventory().firstEmpty(), voucherr, event -> new OptionMenu(instance, voucher).open(event.getPlayer()));
ItemStack voucherItemStack = voucher.toItemStack();
ItemMeta voucherItemMeta = voucherItemStack.getItemMeta();
voucherItemMeta.setDisplayName(ChatColor.translateAlternateColorCodes('&', voucher.getName()));
voucherItemStack.setItemMeta(voucherItemMeta);
addIcon(getInventory().firstEmpty(), voucherItemStack, event -> new OptionMenu(instance, voucher).open(event.getPlayer()));
}
}