Replace existing DataVersion in structure with new version

This commit is contained in:
embeddedt 2023-02-25 20:58:25 -05:00
parent c883b0953e
commit 11c04fb668
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -52,6 +52,7 @@ public class CachingStructureManager {
ModernFix.LOGGER.warn("Structure {} is being run through DFU (hash {}), this will cause launch time delays", location, hash);
currentTag = NbtUtils.update(datafixer, DataFixTypes.STRUCTURE, currentTag, currentDataVersion,
SharedConstants.getCurrentVersion().getWorldVersion());
currentTag.putInt("DataVersion", SharedConstants.getCurrentVersion().getWorldVersion());
saveCachedUpgraded(location, hash, currentTag);
}
}