Fixed map cache in workshop

This commit is contained in:
Anuken
2019-11-01 21:54:00 -04:00
parent 59401ab5f5
commit 52764be2b6

View File

@@ -71,7 +71,7 @@ public class Map implements Comparable<Map>, Publishable{
}
public FileHandle cacheFile(){
return Vars.mapPreviewDirectory.child(file.nameWithoutExtension() + "-cache.dat");
return Vars.mapPreviewDirectory.child(workshop ? file.parent().name() + "-workshop-cache.dat" : file.nameWithoutExtension() + "-cache.dat");
}
public void setHighScore(int score){