Can't Access Commands on First Time Load
Desymoo opened this issue ยท 3 comments
Hello! Thank you for this lovely utility, I've been happily patching away all of my biome frustrations since discovering it :)
The only issue I've ran into so far is the commands don't seem to be working on 1.19.2 forge, with only a few mods loaded. Here's what I've been trying:
- Add
"patched:has_patches": true
to pack.mcmeta.
(The wiki documentation also says something different by the way:"patched_has_patches": true
, which seemed to be incorrect) - Load the pack globally using Paxi. I've also tried loading it locally with the same results.
- When I use the commands
/patched list packs
or/patchedc list packs
they simply tell me that I have 0 packs with patches loaded.
The funny bit is that the patches still work fine, I just can't get it to list any information about them. Any insight would be greatly appreciated ๐
I can't seem to reproduce this issue, with or without Paxi. Could you attach (as a gist) the debug.log
file from when you ran those commands?
Oh interesting... It seems as though the commands start working after loading into the world for the second time onwards, they only fail during the first load into a new world.
Here's the full debug.log. This includes the failed attempt on a new world followed by a successful one after exiting and reloading.
I've managed to reproduce the issue by putting the datapack in before creating the world (via the "Data Packs" button in the world creation screen). The issue has to do with the datapack not being "initialized" from Patched's perspective, which it's supposed to be the moment anything is patched. If you have Patched dump the contents of a patched file (via /patched dump file ...
), it'll initialize the datapack and then /patched list packs
will work as expected.
My guess is that the create world screen reloads the datapacks when adding them, and then after the world is created recreates the datapack instances without reloading any data. This would explain why Patched doesn't think the datapack has patching enabled.
I'll look into a fix some more later, but for now you can workaround the problem by either reopening the world, doing /reload
, or having Patched dump a file.