Update to 1.21.10
Port to 1.21.10
Updating dependencies requires higher versions of Fabric Loom, which breaks the Gradle Scripts. You will need to fix these to build the project.
- Loom 1.11+
- Replace this line with
artifact.moduleVersion.id.group.contains(it.group) && artifact.moduleVersion.id.name.startsWith(it.name) && it.version == artifact.moduleVersion.id.version - Because the artifact name that loom outputs now has a suffix and no longer exactly matches.
- Replace this line with
- Loom 1.14+
- Doesn't directly affect this PR, but will be required for 1.21.11 builds (fabric permissions api 0.6.0 requires it).
- Replace any usages of
archivesBaseName(deprecated) in gradle withbase.archivesName, as Loom 1.14+ requires gradle 9+ where this deprecated property no longer exists.
Also requires an update for https://github.com/Flemmli97/LinguaBibliotheca, which I've made a PR for.
There is one change in logic in this PR - in loading/saving flan player claimdata on Fabric. Vanilla's logic here was modified so that the player data storage no longer has the ServerPlayer object for loading.
I checked neoforge's new hook, but it basically just hooks into when the player joins now, instead of when it actually loads the data. Because other mods can load and save playerdata outside of joining (not triggering this hook) I decided to change the hooks in fabric to only read/save this data on player join/leave.
Otherwise usage of mods like these (for example inv view on offline players) would result in flan writing a default claimdata file for that player, making them lose all their claimblocks. I haven't changed the load/save on neoforge, but that could be looked into.