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
in spigot 1.12
PacketPlayOutWindowItems
returns List instead of Array
please change your code
public ItemStack[] getItems() {
return handle.getItemListModifier().read(0).toArray(new ItemStack[0]);
}
The text was updated successfully, but these errors were encountered:
Also when suggesting line edits on GitHub, you can actually go edit the files your self, make a commit on a forked branch and create and issue requesting to merge in your changes. Makes it easier to keep track of context and see what the edits would imply and removes any confusion, instead of having to manually find the file you are talking about look through the code to find where in the file you suggest the edit.
in spigot 1.12
PacketPlayOutWindowItems
returns List instead of Array
please change your code
public ItemStack[] getItems() {
return handle.getItemListModifier().read(0).toArray(new ItemStack[0]);
}
The text was updated successfully, but these errors were encountered: