Stop looking for legacy cache file names

Related: #485
This commit is contained in:
embeddedt 2024-12-12 19:29:24 -05:00
parent 14a89f94a6
commit ba6d0d20fc
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -70,8 +70,6 @@ public class CachingStructureManager {
hasher.reset();
String hash = encodeHex(hasher.digest(structureBytes));
CompoundTag cachedUpgraded = getCachedUpgraded(location, truncateHash(hash));
if(cachedUpgraded == null)
cachedUpgraded = getCachedUpgraded(location, hash); /* pick up old cache */
if(cachedUpgraded != null && cachedUpgraded.getInt("DataVersion") == requiredMinimumDataVersion) {
ModernFix.LOGGER.debug("Using cached upgraded version of {}", location);
currentTag = cachedUpgraded;