PacketWrapper
PacketWrapper copied to clipboard
Please support to 1.12
in spigot 1.12
PacketPlayOutWindowItems
returns List<ItemStack> instead of Array<ItemStack>
please change your code
public ItemStack[] getItems() {
return handle.getItemListModifier().read(0).toArray(new ItemStack[0]);
}
This project was last updated 4 years ago and currently on Minecraft version 1.7.2.
A fork of this project seems to still be actively developed and is currently up to version 1.12.2: https://github.com/dmulloy2/PacketWrapper
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.