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()) { for (Voucher voucher : instance.getVoucherManager().getVouchers()) {
if (getInventory().firstEmpty() != -1) { if (getInventory().firstEmpty() != -1) {
ItemStack voucherr = voucher.toItemStack(); ItemStack voucherItemStack = voucher.toItemStack();
ItemMeta vouchermeta = voucherr.getItemMeta(); ItemMeta voucherItemMeta = voucherItemStack.getItemMeta();
vouchermeta.setDisplayName(ChatColor.translateAlternateColorCodes('&', voucher.getName())); voucherItemMeta.setDisplayName(ChatColor.translateAlternateColorCodes('&', voucher.getName()));
voucherr.setItemMeta(vouchermeta); voucherItemStack.setItemMeta(voucherItemMeta);
addIcon(getInventory().firstEmpty(), voucherr, event -> new OptionMenu(instance, voucher).open(event.getPlayer())); addIcon(getInventory().firstEmpty(), voucherItemStack, event -> new OptionMenu(instance, voucher).open(event.getPlayer()));
} }
} }