Update to 1.21.3

This commit is contained in:
Moulberry committed 2024-11-14 03:55:01 +01:00
1 parent bc06f67861
commit 8c02fd7430
56 files changed
+609 -573

No files matched your search

@@ -23,8 +23,8 @@ public class RegistryHelper {
// Check counts first, as a fast path
for (RegistryDataLoader.RegistryData<?> registryData : registries) {
Optional<? extends Registry<?>> registryOne = one.registry(registryData.key());
Optional<? extends Registry<?>> registryTwo = two.registry(registryData.key());
Optional<? extends Registry<?>> registryOne = one.lookup(registryData.key());
Optional<? extends Registry<?>> registryTwo = two.lookup(registryData.key());
if (registryOne.isEmpty() || registryTwo.isEmpty()) {
if (registryOne.isEmpty() && registryTwo.isEmpty()) {
@@ -66,8 +66,8 @@ public class RegistryHelper {
private static <T> boolean equalsAssumeSameSize(RegistryAccess one, RegistryAccess two, RegistryOps<?> dynamicOpsOne, RegistryOps<?> dynamicOpsTwo,
RegistryDataLoader.RegistryData<T> registryData) {
Optional<? extends Registry<T>> registryOne = one.registry(registryData.key());
Optional<? extends Registry<T>> registryTwo = two.registry(registryData.key());
Optional<? extends Registry<T>> registryOne = one.lookup(registryData.key());
Optional<? extends Registry<T>> registryTwo = two.lookup(registryData.key());
if (registryOne.isEmpty() || registryTwo.isEmpty()) {
return true;