Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchElementException: CookTimeTotal #67

Closed
joserobjr opened this issue Jun 2, 2019 · 0 comments
Closed

NoSuchElementException: CookTimeTotal #67

joserobjr opened this issue Jun 2, 2019 · 0 comments
Assignees
Labels
Resolution: resolved The issue has been addressed or the request has been accepted Type: bug Something isn't working
Milestone

Comments

@joserobjr
Copy link
Member

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:

  1. Get a 1.8.8 world with furnace (the exact condition to have the tag absent is unknown but is possible)
  2. Optimize it using Minecraft 1.14.2
  3. Attempt to convert it to Nukkit
  4. 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.

@joserobjr joserobjr added the Type: bug Something isn't working label Jun 2, 2019
@joserobjr joserobjr added this to the v2.0.0 milestone Jun 2, 2019
@joserobjr joserobjr self-assigned this Jun 2, 2019
@joserobjr joserobjr added the Resolution: resolved The issue has been addressed or the request has been accepted label Jun 2, 2019
joserobjr added a commit that referenced this issue Jun 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: resolved The issue has been addressed or the request has been accepted Type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant