PowerNukkit / Java2Nukkit-World-Converter

Converts worlds from Minecraft 1.15.2+ Java Edition to the newest Nukkit MCA file format
MIT License
23 stars 6 forks source link

The -r parameter doesn't accept regions with position higher then 9 #89

Closed joserobjr closed 4 years ago

joserobjr commented 4 years ago

Affected Version 3.0.0

Describe the bug

java -jar Java2Nukkit-World-Converter-3.0.0-cli.jar from to -r 20,10

Fails because the validation regex is missing + signs.

Exception stack trace If applicable, paste it below to help explain your problem.

Z:\Projetos\nbt-manipulator\build\libs>java -jar Java2Nukkit-World-Converter-3.0.0-cli.jar from to -r 20,10
The regions parameter must follow this syntax:
-r 0,0;-1,0;-1,-1
Usage: java -jar Java2Nukkit-World-Converter-3.0.0-cli.jar [-h] from-dir to-dir [-r regions] [--keep-custom-heads]

  -h, --help                Prints help
  from-dir                  The world Java Edition world directory
  to-dir                    The location where the Nukkit world will be created
  -r regions                A list of region positions that will be converted. Example: -r 0,0;-1,0;-1,-1
  --keep-custom-heads       Makes the tool convert player heads with custom skins as regular player heads. The default behaviour is to remove them.