CardboardPowered / cardboard

The Bukkit/Spigot/Paper API implementation for Fabric
https://cardboardpowered.org
GNU General Public License v3.0
976 stars 56 forks source link

Creating an inventory with the wrong title #466

Open LyFl0w opened 5 months ago

LyFl0w commented 5 months ago

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

axlecoffee commented 5 months ago

hi @LyFl0w

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

LyFl0w commented 5 months ago

is it possible to upgrade to 1.20?