mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2026-11-01 20:14:27 +00:00
In 634cd52b60 we found out that NBT
hashing requires access to the current registries. However, passing that
around would have required an API change, so we just probed the current
server globally.
On 1.21.10 we can break the API, so let's do this properly:
- DetailRegistry/DetailProvider now take a HolderLookup.Provider as an
argument. I did debate whether non-basic details should use a
MinecraftServer for now, but that makes the API less uniform.
- This means our generic peripherals need access to the current server.
We also update the API to support registering
MinecraftServer->GenericSource factories