You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
LyFl0w
changed the title
Create inventory title
Creating an inventory with the wrong title
Apr 19, 2024
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.
The text was updated successfully, but these errors were encountered: