MinusKube / SmartInvs

Advanced Inventory API for your Minecraft Bukkit plugins.

Home Page:https://minuskube.gitbook.io/smartinvs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IndexOutOfBoundsException and crash when opening inventory on 1.17

Archy-X opened this issue · comments

The server throws an error and crashes when attempting to open a custom inventory on 1.17, this could be a spigot issue though:
https://pastebin.com/PtvKAAZD

could you show your code where you use the library or open the inventory.

It is just when calling SmartInventory#open, such as here:

SmartInventory inventory = SkillsMenu.getInventory(player, plugin);
if (inventory != null) {
	inventory.open(player);
} else {
	player.sendMessage(Lang.getMessage(CommandMessage.NO_PROFILE, Lang.getDefaultLanguage()));
}

I just updated to most recent version of SmartInvs, here is the new error: https://pastebin.com/qvapnmzR

Confirmed spigot issue and fixed on latest 1.17 build.