Remove block data caching

This commit is contained in:
cyberpwn
2021-08-24 04:00:17 -04:00
parent 56e13641df
commit 617066340b
10 changed files with 121 additions and 78 deletions

View File

@@ -473,8 +473,7 @@ public class Mantle {
* @return the file
*/
public static File fileForRegion(File folder, Long key) {
String id = UUID.nameUUIDFromBytes(("TectonicPlate:" + key).getBytes(StandardCharsets.UTF_8)).toString();
File f = new File(folder, id.substring(0, 2) + "/" + id.split("\\Q-\\E")[3] + "/" + id + ".ttp");
File f = new File(folder, "p." + key + ".ttp");
if(!f.getParentFile().exists())
{
f.getParentFile().mkdirs();