Ridanisaurus / EmendatusEnigmatica

Minecraft Unification Mod
MIT License
38 stars 16 forks source link

EE Datapack errors when there is any of x processing type. #194

Closed Kanzaji closed 1 year ago

Kanzaji commented 1 year ago

Issue description

EE Generates empty files for tags if any of the materials don't have that processing type. This isn't that big of an issue but it is still a bit irritating ^^"

One of the errors:

[18:00:50] [Worker-Main-3/ERROR] [minecraft/TagLoader]: No key values in MapLike[{}]
[18:00:50] [Worker-Main-3/ERROR] [minecraft/TagLoader]: Couldn't read tag list forge:armors/boots from forge:tags/items/armors/boots.json in data pack EE Generated Pack
java.lang.RuntimeException: No key values in MapLike[{}]
    at com.mojang.serialization.DataResult.lambda$getOrThrow$4(DataResult.java:100) ~[datafixerupper-5.0.28.jar%2386!/:?] {re:mixin}
    at com.mojang.datafixers.util.Either$Right.map(Either.java:99) ~[datafixerupper-5.0.28.jar%2386!/:?] {}
    at com.mojang.serialization.DataResult.getOrThrow(DataResult.java:93) ~[datafixerupper-5.0.28.jar%2386!/:?] {re:mixin}
    at net.minecraft.tags.TagLoader.m_144495_(TagLoader.java:62) ~[client-1.19.2-20220805.130853-srg.jar%23525!/:?] {re:mixin,re:classloading,pl:mixin:APP:kubejs-common.mixins.json:TagLoaderMixin,pl:mixin:A}
    at net.minecraft.tags.TagLoader.m_203900_(TagLoader.java:177) ~[client-1.19.2-20220805.130853-srg.jar%23525!/:?] {re:mixin,re:classloading,pl:mixin:APP:kubejs-common.mixins.json:TagLoaderMixin,pl:mixin:A}
    at net.minecraft.tags.TagManager.m_203920_(TagManager.java:54) ~[client-1.19.2-20220805.130853-srg.jar%23525!/:?] {re:mixin,re:classloading,pl:mixin:APP:kubejs-common.mixins.json:TagManagerMixin,pl:mixin:A}
    at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) [?:?] {}
    at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) [?:?] {}
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) [?:?] {}
    at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) [?:?] {}
    at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) [?:?] {re:computing_frames}
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) [?:?] {re:computing_frames}
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) [?:?] {}

Steps to reproduce

  1. Download EE
  2. Run the game with any material specified (or with just one that is adding like an ingot)
  3. Check the logs, there will be errors about empty tag files in EE Generated Datapacks!

Minecraft version

1.19.2 (Latest)

Forge version

43.2.3

Emendatus Enigmatica version

Current Dev Branch (Manually Compiled)

Other relevant versions

I see this issue since 2.0 release ^^"

If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)

latest.log