fabric/fabric-resource-loader-v0
Jochen Jacobs c0e5481f61
Use knownPackInfo on mod data packs to avoid registry syncing (#3726)
* use knownPack to avoid syncing mod data packs.

* remove empty class

* checkstyle and licenses

* move debug logging from testmod into main module

* fix knownPackInfo not working for build-in data packs.

* make bundled data packs not required for client, and don't auto enable

* improve testmod with added builtin data pack + better error message

* Increase max known packs in C2S packet

* validate size before sending
* changeable with system property

* change mixin from ModifyConstant to ModifyArg to be more clear.

* Apply suggestions from code review

Co-authored-by: modmuss <modmuss50@gmail.com>

* store list of knownPacks as server start

avoids desync on pack change (since registries aren't reloaded)

* be extra safe: only request knownPacks that were enabled at server start and still are.

Doesn't rely on the fact that registries aren't synced anymore.

---------

Co-authored-by: modmuss <modmuss50@gmail.com>
2024-05-07 19:03:31 +01:00
..
src Use knownPackInfo on mod data packs to avoid registry syncing (#3726) 2024-05-07 19:03:31 +01:00
build.gradle Update to loom 1.3 and use Mod Publish Plugin (#3158) 2023-08-02 18:51:21 +01:00