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

java.lang.ClassCastException -> unnamed module of loader 'app' #96

Open suerion opened 4 years ago

suerion commented 4 years ago

Affected Version The exact version number. Do not type latest, please be specific.

3.0.0

Describe the bug A clear and concise description of what the bug is.

We tried, after deleting all the problem blocks #95 #93

To Reproduce Steps to reproduce the behavior:

  1. Start the converter
  2. stopped converter....

Expected behaviors

Should be convert the map

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

converting section 5, version = 0 | target = NUKKIT
converting section 6, version = 0 | target = NUKKIT
converting section 7, version = 0 | target = NUKKIT
converting section 8, version = 0 | target = NUKKIT
converting section 9, version = 0 | target = NUKKIT
converting section 10, version = 0 | target = NUKKIT
converting section 11, version = 0 | target = NUKKIT
converting section 12, version = 0 | target = NUKKIT
An error has occurred while converting the world!
java.lang.ClassCastException: class br.com.gamemods.nbtmanipulator.NbtInt cannot be cast to class br.com.gamemods.nbtmanipulator.NbtShort (br.com.gamemods.nbtmanipulator.NbtInt and br.com.gamemods.nbtmanipulator.NbtShort are in unnamed module of loader 'app')
        at br.com.gamemods.nbtmanipulator.NbtCompound.getNullableShort(nbt.kt:664)
        at br.com.gamemods.j2nwc.internal.Block_converterKt.toNukkit(block-converter.kt:161)
        at br.com.gamemods.j2nwc.internal.Chunk_converterKt.toNukkit(chunk-converter.kt:118)
        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:42)
        at br.com.gamemods.j2nwc.internal.RegionFileConverter.convertRegionFile(RegionFileConverter.kt:20)
        at br.com.gamemods.j2nwc.WorldConverter.convert(WorldConverter.kt:108)
        at br.com.gamemods.j2nwc.WorldConverterCLI.main(WorldConverterCLI.kt:107)
The world conversion has failed
suerion commented 4 years ago

In this converter file, our dev had added debug for the version 7 with coords -> the int and string type would be resolved -> the "NoSuchElementException" would be resolved and debug with coords and block type

Java2Nukkit-World-Converter-3.2.5-SNAPSHOT-cli.zip debug