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

NoSuchElementException: PostProcessing #42

Closed joserobjr closed 5 years ago

joserobjr commented 5 years ago

Affected Version 1.0.0, 1.0.1, 2.0.0-SNAPSHOT

Describe the bug The LiquidTicks tag is optional and is being treated as required.

To Reproduce Steps to reproduce the behavior:

  1. Optimize a 1.8.8 world
  2. Immediately after, attempt to convert it to Nukkit

Expected behavior Convert the world successfully

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

Exception in thread "main" java.util.NoSuchElementException: PostProcessing
    at br.com.gamemods.nbtmanipulator.NbtCompound.require(nbt.kt:334)
    at br.com.gamemods.nbtmanipulator.NbtCompound.getList(nbt.kt:424)
    at br.com.gamemods.nbtmanipulator.NbtCompound.getListOfList(nbt.kt:533)
    at br.com.gamemods.j2nwc.internal.JavaChunk.<init>(JavaChunk.kt:89)
    at br.com.gamemods.j2nwc.internal.Chunk_converterKt.toNukkit(chunk-converter.kt:11)
    at br.com.gamemods.j2nwc.internal.RegionFileConverter.toNukkit(RegionFileConverter.kt:33)
    at br.com.gamemods.j2nwc.internal.RegionFileConverter.convertRegionFile(RegionFileConverter.kt:17)
    at br.com.gamemods.j2nwc.WorldConverter.convert(WorldConverter.kt:94)
    at br.com.gamemods.worldrepo.MundoJava.converterParaNukkit(MundoJava.kt:27)
    at br.com.gamemods.worldrepo.TestesKt.main(testes.kt:13)
    at br.com.gamemods.worldrepo.TestesKt.main(testes.kt)

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.