Plugin throws an ArrayIndexOutOfBoundsException error when trying to set an item on the 27'th / last slot.
Stack Trace:
[20:54:49 ERROR]: [CommandAPI] Unhandled exception executing '/opengold'
java.lang.ArrayIndexOutOfBoundsException: Index 27 out of bounds for length 27
at java.base/java.util.Arrays$ArrayList.set(Arrays.java:4271) ~[?:?]
at net.minecraft.core.NonNullList.set(NonNullList.java:50) ~[paper-1.21.1.jar:1.21.1-98-9b1ee0d]
...
✔️ Expected behavior
GUI is supposed to open and show an item on the 27'th / last slot.
👣 Steps to Reproduce
Create a Container.
Set an item to the 27 using render.slot or render.lastSlot method.
GUI doesn't open and throws an ArrayIndexOutOfBoundsException error.
Is there an existing issue for this?
🐛 Describe the bug
Plugin throws an
ArrayIndexOutOfBoundsException
error when trying to set an item on the 27'th / last slot.Stack Trace:
✔️ Expected behavior
GUI is supposed to open and show an item on the 27'th / last slot.
👣 Steps to Reproduce
render.slot
orrender.lastSlot
method.ArrayIndexOutOfBoundsException
error.💻 Platform
⭐ Server Version
1.21.1
📚 Library Version
3.0.11
✍️ Additional context
No response