Fix handling of orphaned registry entries (#1759)

* Fix handling of orphaned registry entries

* Fix handling of orphaned registry entries in RegistrySyncManager
This commit is contained in:
BasiqueEvangelist 2021-10-07 14:21:27 +03:00 committed by modmuss50
parent e1a2e51818
commit 21f792c9f8
2 changed files with 2 additions and 2 deletions

View file

@ -169,7 +169,7 @@ public class PersistentDynamicRegistryHandler {
for (String key : existingTag.getKeys()) {
if (!registryTag.contains(key)) {
LOGGER.debug("Saving orphaned registry entry: " + key);
registryTag.putInt(key, registryTag.getInt(key));
registryTag.putInt(key, existingTag.getInt(key));
}
}
}

View file

@ -224,7 +224,7 @@ public final class RegistrySyncManager {
for (String key : previousRegistryData.getKeys()) {
if (!registryTag.contains(key)) {
LOGGER.debug("Saving orphaned registry entry: " + key);
registryTag.putInt(key, registryTag.getInt(key));
registryTag.putInt(key, previousRegistryData.getInt(key));
}
}
}