Describe the bug
The CookTimeTotal tag in Furnace's tile entity is optional and is being treated as required.
To Reproduce
Steps to reproduce the behavior:
Get a 1.8.8 world with furnace (the exact condition to have the tag absent is unknown but is possible)
Optimize it using Minecraft 1.14.2
Attempt to convert it to Nukkit
See error
Expected behavior
Skip the missing tag.
Exception stack trace
If applicable, paste it below to help explain your problem.
Exception in thread "main" java.util.NoSuchElementException: CookTimeTotal
at br.com.gamemods.nbtmanipulator.NbtCompound.require(nbt.kt:334)
at br.com.gamemods.nbtmanipulator.NbtCompound.getShort(nbt.kt:349)
at br.com.gamemods.j2nwc.internal.Block_converterKt.toNukkit(block-converter.kt:127)
at br.com.gamemods.j2nwc.internal.Chunk_converterKt.toNukkit(chunk-converter.kt:107)
at br.com.gamemods.j2nwc.internal.Chunk_converterKt$toNukkit$nukkitSections$2.invoke(chunk-converter.kt:22)
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:372)
at kotlin.collections.MapsKt__MapsKt.toMap(Maps.kt:540)
at kotlin.collections.MapsKt__MapsKt.toMap(Maps.kt:534)
at br.com.gamemods.j2nwc.internal.Chunk_converterKt.toNukkit(chunk-converter.kt:26)
at br.com.gamemods.j2nwc.internal.RegionFileConverter.toNukkit(RegionFileConverter.kt:38)
at br.com.gamemods.j2nwc.internal.RegionFileConverter.convertRegionFile(RegionFileConverter.kt:19)
at br.com.gamemods.j2nwc.WorldConverter.convert(WorldConverter.kt:101)
at br.com.gamemods.worldrepo.MundoJava.converterParaNukkit(MundoJava.kt:29)
at br.com.gamemods.worldrepo.MundoConstrucao.publicar(MundoConstrucao.kt:181)
at br.com.gamemods.worldrepo.ImportadorDeMundo$Companion.importarLegado(ImportadorDeMundo.kt:101)
at privado.Importar_legadoKt.main(importar-legado.kt:16)
at privado.Importar_legadoKt.main(importar-legado.kt)
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Affected Version 2.0.0-SNAPSHOT
Describe the bug The CookTimeTotal tag in Furnace's tile entity is optional and is being treated as required.
To Reproduce Steps to reproduce the behavior:
Expected behavior Skip the missing tag.
Exception stack trace If applicable, paste it below to help explain your problem.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.