Fix a regresstion preveting clients with an un-modded regsitry joining servers with modded registries. (#3036)

This commit is contained in:
modmuss50 2023-05-01 13:54:55 +01:00 committed by GitHub
parent 76ba65ebd7
commit 9496b969b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -347,6 +347,13 @@ public final class RegistrySyncManager {
continue;
}
final RegistryAttributeHolder attributeHolder = RegistryAttributeHolder.get(registry.getKey());
if (!attributeHolder.hasAttribute(RegistryAttribute.MODDED)) {
// Registry is not modded on the client, dont check. A print to debug is logged in apply.
continue;
}
for (Identifier remoteId : remoteRegistry.keySet()) {
if (!registry.containsId(remoteId)) {
// Found a registry entry from the server that is