Feat: use chunk for renderer

This commit is contained in:
Sheepit Renderfarm
2024-11-20 13:05:20 +00:00
parent f069f63f7a
commit 94b36241b0
7 changed files with 41 additions and 64 deletions

View File

@@ -57,7 +57,7 @@ import lombok.Data;
private String logDirectory;
private File workingDirectory;
private File sharedDownloadsDirectory;
private File woolCacheDirectory; // store all the chunks (and binary for now)
private File woolCacheDirectory; // store all the chunks (project and blender)
private boolean userHasSpecifiedACacheDir;
private String login;
private String password;
@@ -273,7 +273,7 @@ import lombok.Data;
try {
String extension = file.getName().substring(file.getName().lastIndexOf('.')).toLowerCase();
String name = file.getName().substring(0, file.getName().length() - 1 * extension.length());
if (".zip".equals(extension) || ".wool".equals(extension)) {
if (".wool".equals(extension)) {
// check if the md5 of the file is ok
String md5_local = Utils.md5(file.getAbsolutePath());
@@ -339,7 +339,7 @@ import lombok.Data;
try {
String extension = file.getName().substring(file.getName().lastIndexOf('.')).toLowerCase();
String name = file.getName().substring(0, file.getName().length() - 1 * extension.length());
if (".zip".equals(extension) || ".wool".equals(extension)) {
if (".wool".equals(extension)) {
// check if the md5 of the file is ok
String md5_local = Utils.md5(file.getAbsolutePath());