MythicMobs errors on load if any non-default items files are present
Summary
Describe the bug encountered in detail.
Steps to reproduce
Start a fresh mythic mobs install.
Start the server to generate the default files.
Add any items file to the items directory.
(I used one with a renamed copy of one of the default items as a test.(
Restart the server OR /mm reload.
Get error.
I'm using MM build 5306 on paper 1.21.3 build 81
Provide a full set of steps used to reproduce the bug, including links to SEPARATE Pastebin pastes for each relevant configuration file.
Here's the extra item file I added to debug this: https://paste.gg/p/Momshroom/de52bb4539bc467dbf8ae3fe7ac4588b
Current behavior
Describe what happens currently, while the bug is affecting your server. Error on startup or plugin reload with /mm reload
Intended correct behavior
Describe what you think should happen instead of the bug. I think the plugin should load w/o error with added items
Server log file
Provide a link to a Pastebin paste with a copy of your server's latest.log file from startup to "Done!" AND includes a player connecting. No player connecting as the bug happens before a player connects... but here's the log: https://paste.gg/p/Momshroom/5b3f8315ad8f41c2addf3710a0b5fd3a
Debug log snippet
Provide a link to a Pastebin paste with an excerpt of your latest.log file that includes debug output where you trigger the bugged behavior.
Bugged behavior happens on first plugin load. Here's the error: https://paste.gg/p/anonymous/bafc8f464ca24405ae3ab8407388d0a0
Proposed fixes
Describe what you think the issue or any potential fixes may be.
I'm not sure this question applies here, but: there seems to be an issue with the ItemStack generation in the code. I saw similar issues with another plugin a while back relating to changes in the way MC handles item stacks recently. I know the error mentions banners, but there are no banners in my items file and absolutely everything else is default and freshly generated. There are no errors when there is not a second items file. (the example one plus my added one above: no error with just example one)