mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-22 15:47:57 -05:00
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:
parent
e1a2e51818
commit
21f792c9f8
2 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue