cardboard icon indicating copy to clipboard operation
cardboard copied to clipboard

Creating an inventory with the wrong title

Open LyFl0w opened this issue 1 year ago • 2 comments

Hi, I tried my plugin which works perfectly under Spigot with your mod and when I open a custom inventory, the inventory title is "null". I'm using your mod for 1.20.4 and my plugin uses Spigot as its API in 1.20.4. What's strange is that I don't get any errors in the console and the inventory items are in the right place with the right name.

I use this code to create my inventories : public InventoryBuilder(int size, String title) { inventory = Bukkit.createInventory(null, size, title); }

So I don't know if the null refers to the owner, but the doc talks about it very well.

image

LyFl0w avatar Apr 19 '24 11:04 LyFl0w

hi @LyFl0w

We are still based on an old spigot version iirc 1.19 or smth so its probably that

axlecoffee avatar Apr 19 '24 15:04 axlecoffee

is it possible to upgrade to 1.20?

LyFl0w avatar Apr 20 '24 12:04 LyFl0w