Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating an inventory with the wrong title #466

Open
LyFl0w opened this issue Apr 19, 2024 · 2 comments
Open

Creating an inventory with the wrong title #466

LyFl0w opened this issue Apr 19, 2024 · 2 comments

Comments

@LyFl0w
Copy link

LyFl0w commented 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.

image

@LyFl0w LyFl0w changed the title Create inventory title Apr 19, 2024
@axlecoffee
Copy link
Contributor

axlecoffee commented Apr 19, 2024

hi @LyFl0w

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

@LyFl0w
Copy link
Author

LyFl0w commented Apr 20, 2024

is it possible to upgrade to 1.20?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants