diff --git a/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/impl/registry/sync/PersistentDynamicRegistryHandler.java b/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/impl/registry/sync/PersistentDynamicRegistryHandler.java index 509b5b293..a3ffbb478 100644 --- a/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/impl/registry/sync/PersistentDynamicRegistryHandler.java +++ b/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/impl/registry/sync/PersistentDynamicRegistryHandler.java @@ -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)); } } } diff --git a/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/impl/registry/sync/RegistrySyncManager.java b/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/impl/registry/sync/RegistrySyncManager.java index edfa351a3..d694b657e 100644 --- a/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/impl/registry/sync/RegistrySyncManager.java +++ b/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/impl/registry/sync/RegistrySyncManager.java @@ -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)); } } }