mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-02 14:38:50 +00:00
Update to 1.21.3
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user