From 5fe1f0a019b962f5761a1de6477d23f11f9ddeed Mon Sep 17 00:00:00 2001 From: Ryder Belserion Date: Thu, 31 Oct 2024 21:16:11 -0400 Subject: [PATCH] fix npe with itembuilder --- .../badbones69/crazyauctions/api/guis/types/other/BidMenu.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/other/BidMenu.java b/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/other/BidMenu.java index db766f1..0f8e568 100644 --- a/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/other/BidMenu.java +++ b/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/other/BidMenu.java @@ -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);