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

Biomes from optimized 1.8.8 maps are byte array #48

Closed
joserobjr opened this issue May 28, 2019 · 0 comments
Closed

Biomes from optimized 1.8.8 maps are byte array #48

joserobjr opened this issue May 28, 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
1.0.0, 1.0.1, 2.0.0-SNAPSHOT

Describe the bug
The Biomes tag may be byte array in some optimized chunks.

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.lang.ClassCastException: br.com.gamemods.nbtmanipulator.NbtByteArray cannot be cast to br.com.gamemods.nbtmanipulator.NbtIntArray
	at br.com.gamemods.nbtmanipulator.NbtCompound.getIntArray(nbt.kt:400)
	at br.com.gamemods.j2nwc.internal.JavaChunk.<init>(JavaChunk.kt:104)
	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.

@joserobjr joserobjr added the Type: bug Something isn't working label May 28, 2019
@joserobjr joserobjr added this to the v2.0.0 milestone May 28, 2019
@joserobjr joserobjr self-assigned this May 28, 2019
@joserobjr joserobjr added the Resolution: resolved The issue has been addressed or the request has been accepted label May 28, 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