Querz / mcaselector

A tool to select chunks from Minecraft worlds for deletion or export.
MIT License
3.18k stars 177 forks source link

NBT Change crashes/doesn't load #373

Closed lightninjay closed 2 years ago

lightninjay commented 2 years ago

Describe the bug NBT Changer crashes with a null error in versions 2.0.2 and 2.1, but loads just fine in 2.0.1.

To Reproduce Steps to reproduce the behavior:

  1. Open MCA Selector version 2.0.2 or 2.1
  2. Load a world
  3. Go to ''Tools>Change fields"
  4. The terminal window used to launch java running mcaselector, spits out a "ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider org.codehaus.groovy.jsr223.GroovyScriptEngineFactory not found" error for version 2.1, and "ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider org.openjdk.nashorn.api.scripting.NashornScriptEngineFactory not found" error for version 2.0.2
  5. No NBT Change window is displayed.

Expected behavior NBT Change window should be opened, allowing for changes to be made to chunks.

Environment (please complete the following information):

Additional context I rolled back to version 2.0.1 and the NBT changer works. After a small test on a brand-new-generated 1.19.1 world, and successfully replacing all the bedrock blocks with air blocks, I am currently using the 2.0.1 version to replace all the bedrock blocks with air blocks on my 50k x 50k server map. It has been running for several hours so far, and continues to make progress according to my CPU monitor, as well as the progress window produced by MCA selector. Thank you for your work on this project, my task would have been much more difficult/impossible otherwise. I just wanted to ensure that the NBT changer works in all the latest versions.

lightninjay commented 2 years ago

I noticed the recent change that excludes groovy from the shadowjar minimizer process, and upon building from current source, the NBT change window appears to function properly again. I would mark this as solved.