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

Error while converting #102

Open J1b1x opened 2 years ago

J1b1x commented 2 years ago

Affected Version 3.0.0

Describe the bug I tried to convert a paper 1.16.5 world, and got an error

To Reproduce Steps to reproduce the behavior:

  1. I went to '/home/converter/'
  2. I runned this command: 'java -jar Java2Nukkit.jar /home/converter/world/ /home/converter/done'
  3. And got the error

Expected behavior A converted world..? lol

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

{{'An error has occurred while converting the world!
java.lang.IllegalStateException: Failed to get the Palette ID
        at br.com.gamemods.j2nwc.internal.Chunk_converterKt.toNukkit(chunk-converter.kt:101)
        at br.com.gamemods.j2nwc.internal.Chunk_converterKt$toNukkit$nukkitSections$2.invoke(chunk-converter.kt:31)
        at br.com.gamemods.j2nwc.internal.Chunk_converterKt$toNukkit$nukkitSections$2.invoke(chunk-converter.kt)
        at kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:172)
        at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:132)
        at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:156)
        at kotlin.collections.MapsKt__MapsKt.putAll(Maps.kt:374)
        at kotlin.collections.MapsKt__MapsKt.toMap(Maps.kt:542)
        at kotlin.collections.MapsKt__MapsKt.toMap(Maps.kt:536)
        at br.com.gamemods.j2nwc.internal.Chunk_converterKt.toNukkit(chunk-converter.kt:35)
        at br.com.gamemods.j2nwc.internal.RegionFileConverter.toNukkit(RegionFileConverter.kt:39)
        at br.com.gamemods.j2nwc.internal.RegionFileConverter.convertRegionFile(RegionFileConverter.kt:19)
        at br.com.gamemods.j2nwc.WorldConverter.convert(WorldConverter.kt:105)
        at br.com.gamemods.j2nwc.WorldConverterCLI.main(WorldConverterCLI.kt:83)
The world conversion has failed'}}

Screenshots None

Additional context None