fix npe with itembuilder

This commit is contained in:
Ryder Belserion 2024-10-31 21:16:11 -04:00
parent e6d22beb42
commit 5fe1f0a019
No known key found for this signature in database

View File

@ -79,7 +79,7 @@ public class BidMenu extends Holder {
this.inventory.setItem(13, getGlass(null));
this.inventory.setItem(22, new ItemBuilder().addString("bid_item", auction_button).setMaterial(this.config.getString("Settings.GUISettings.OtherSettings.Bid.Item")).setAmount(1)
this.inventory.setItem(22, new ItemBuilder().setMaterial(this.config.getString("Settings.GUISettings.OtherSettings.Bid.Item")).setAmount(1).addString("bid_item", auction_button)
.setName(this.config.getString("Settings.GUISettings.OtherSettings.Bid.Name")).setLore(this.config.getStringList("Settings.GUISettings.OtherSettings.Bid.Lore")).build());
this.inventory.setItem(4, item);