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

Issues scanning 1.21 inventory? #7

Open
patrickmacarthur opened this issue Jul 28, 2024 · 0 comments
Open

Issues scanning 1.21 inventory? #7

patrickmacarthur opened this issue Jul 28, 2024 · 0 comments

Comments

@patrickmacarthur
Copy link

I'm guessing the NBT format changes are causing problems?

PS C:\multimc\instances\1.21\.minecraft\saves> java -jar C:\Users\Patrick\Downloads\mc-scanner-0.5.1.jar --stats temp result.zip
[]
Error scanning RegionFile(overworld, x=-1, z=-1)
java.lang.IllegalArgumentException: No int value for Count
        at de.skyrising.mc.scanner.CompoundTag.getInt(nbt.kt:331)
        at de.skyrising.mc.scanner.InventoriesKt.scanInventory(inventories.kt:65)
        at de.skyrising.mc.scanner.RegionKt.scanChunkItems(region.kt:135)
        at de.skyrising.mc.scanner.RegionKt.scanChunk(region.kt:82)
        at de.skyrising.mc.scanner.RegionFile$scan$1$1.invoke(region.kt:43)
        at de.skyrising.mc.scanner.RegionFile$scan$1$1.invoke(region.kt:42)
        at de.skyrising.mc.scanner.region.RegionVisitor$Companion$visitAllChunks$1$visitChunk$1.visit(visitors.kt:21)
        at de.skyrising.mc.scanner.region.RegionReader.visitChunk(io.kt:107)
        at de.skyrising.mc.scanner.region.RegionReader.accept(io.kt:32)
        at de.skyrising.mc.scanner.RegionFile.scan(region.kt:42)
        at de.skyrising.mc.scanner.ScannerKt.runScan$lambda-4$lambda-3(scanner.kt:202)
        at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804)
        at java.base/java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)

5/5 10.1MiB/13.7MiB 38.2MiB/s 0 results

I can provide the region file if needed to debug this issue, but I imagine it should be reproducible by creating a new 1.21 world and placing barrels with shulker boxes containing items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant