Describe the bug
The Fuel tag in BrewingStand'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 brewing stands
Optimize it using Minecraft 1.14.2
Attempt to convert it to Nukkit
See error
Expected behavior
Treat missing value as 0.
Exception stack trace
If applicable, paste it below to help explain your problem.
Exception in thread "main" java.util.NoSuchElementException: Fuel
at br.com.gamemods.nbtmanipulator.NbtCompound.require(nbt.kt:334)
at br.com.gamemods.nbtmanipulator.NbtCompound.getByte(nbt.kt:342)
at br.com.gamemods.j2nwc.internal.Block_converterKt$toNukkit$nukkitTileEntity$3.invoke(block-converter.kt:132)
at br.com.gamemods.j2nwc.internal.Block_converterKt$toNukkit$nukkitTileEntity$3.invoke(block-converter.kt)
at br.com.gamemods.j2nwc.internal.Block_converterKt$toNukkit$2.invoke(block-converter.kt:25)
at br.com.gamemods.j2nwc.internal.Block_converterKt.toNukkit(block-converter.kt:128)
at br.com.gamemods.j2nwc.internal.Chunk_converterKt.toNukkit(chunk-converter.kt:105)
at br.com.gamemods.j2nwc.internal.Chunk_converterKt$toNukkit$nukkitSections$2.invoke(chunk-converter.kt:20)
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:24)
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:29)
at br.com.gamemods.worldrepo.MundoConstrucao.publicar(MundoConstrucao.kt:181)
at br.com.gamemods.worldrepo.ImportadorDeMundo$Companion.importarLegado(ImportadorDeMundo.kt:100)
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 Fuel tag in BrewingStand's tile entity is optional and is being treated as required.
To Reproduce Steps to reproduce the behavior:
Expected behavior Treat missing value as
0
.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.