WesJD / AnvilGUI

Capture user input in Minecraft through an anvil GUI in under 20 lines of code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AnvilGUI does not initialize on Paper `testing/no-relocation`

datatags opened this issue · comments

When attempting to open an AnvilGUI on the Paper testing/no-relocation branch (with AnvilGUI shaded into my plugin,) an error is thrown:

Caused by: java.lang.ExceptionInInitializerError
        at be.isach.ultracosmetics.shaded.anvilgui.anvilgui.AnvilGUI$Builder.<init>(AnvilGUI.java:401) ~[?:?]
        at be.isach.ultracosmetics.command.subcommands.SubCommandRename.onExePlayer(SubCommandRename.java:31) ~[?:?]
        at be.isach.ultracosmetics.command.CommandManager.onCommand(CommandManager.java:85) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        ... 29 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3
        at be.isach.ultracosmetics.shaded.anvilgui.anvilgui.version.VersionMatcher.match(VersionMatcher.java:25) ~[?:?]
        at be.isach.ultracosmetics.shaded.anvilgui.anvilgui.AnvilGUI.<clinit>(AnvilGUI.java:43) ~[?:?]
        at be.isach.ultracosmetics.shaded.anvilgui.anvilgui.AnvilGUI$Builder.<init>(AnvilGUI.java:401) ~[?:?]
        at be.isach.ultracosmetics.command.subcommands.SubCommandRename.onExePlayer(SubCommandRename.java:31) ~[?:?]
        at be.isach.ultracosmetics.command.CommandManager.onCommand(CommandManager.java:85) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        ... 29 more

That build of Paper can be found here: https://github.com/PaperMC/testing/releases/tag/no-relocation
Additional information: https://forums.papermc.io/threads/paper-velocity-1-20-4.998/#post-2955
UltraCosmetics/UltraCosmetics#153

Duplicate of #294