Skip to content

Commit

Permalink
Don't set inventory holder
Browse files Browse the repository at this point in the history
  • Loading branch information
StarTux committed Dec 29, 2020
1 parent 7a07814 commit 18fadf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/edu/self/startux/craftBay/AuctionInventory.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void setPlayer(Player player, MoneyAmount minbid, Inventory inventory, bo
public void initPlayer(Player player, MoneyAmount minbid) {
String title = plugin.getMessage("auction.gui.ChestTitle").toString();
if (title.length() > 32) title = title.substring(0, 32);
Inventory inventory = Bukkit.createInventory(player, 54, title);
Inventory inventory = Bukkit.createInventory(null, 54, title);
player.openInventory(inventory);
setPlayer(player, minbid, inventory, false);
}
Expand All @@ -88,7 +88,7 @@ public boolean initPreview(Player player, Auction auction) {
}
if (items.isEmpty()) return false;
int invSize = ((items.size() - 1) / 9 + 1) * 9;
Inventory inventory = Bukkit.createInventory(player, invSize, "Auction Preview");
Inventory inventory = Bukkit.createInventory(null, invSize, "Auction Preview");
for (ItemStack stack: items) inventory.addItem(stack);
player.openInventory(inventory);
setPlayer(player, new MoneyAmount(0.0), inventory, true);
Expand Down

0 comments on commit 18fadf5

Please sign in to comment.