Removed GPT 4 Comments lmao

This commit is contained in:
RePixelatedMC
2023-11-11 21:26:31 +01:00
parent 6ff5975918
commit acac2d0fc5
@@ -65,11 +65,11 @@ public class HotDropWorldSVC extends Looper {
return -1; return -1;
} }
return 1000; // Loop every 1000 milliseconds (1 second) return 1000;
} }
private String getVersionFromIrisFolder(File irisFolder) { private String getVersionFromIrisFolder(File irisFolder) {
File versionFile = new File(irisFolder, "some_version_file.json"); // Replace with actual file name File versionFile = new File(irisFolder, "some_version_file.json");
if (versionFile.exists() && versionFile.isFile()) { if (versionFile.exists() && versionFile.isFile()) {
try (FileReader reader = new FileReader(versionFile)) { try (FileReader reader = new FileReader(versionFile)) {
@@ -80,14 +80,12 @@ public class HotDropWorldSVC extends Looper {
} catch (IOException | JsonParseException e) { } catch (IOException | JsonParseException e) {
Iris.reportError(e); Iris.reportError(e);
e.printStackTrace(); e.printStackTrace();
// Optionally, log additional information or take alternative action
} }
} }
return "???"; // Default or unknown version return "???";
} }
private boolean isPackValid(String worldPackName, String version) { private boolean isPackValid(String worldPackName, String version) {
try { try {
File packFolder = Iris.service(StudioSVC.class).getWorkspaceFolder(); File packFolder = Iris.service(StudioSVC.class).getWorkspaceFolder();
@@ -120,7 +118,6 @@ public class HotDropWorldSVC extends Looper {
return false; return false;
} }
private String getPackVersion(File pack) { private String getPackVersion(File pack) {
String version = "???"; String version = "???";
File dimensionFile = new File(pack, "dimensions/" + pack.getName() + ".json"); File dimensionFile = new File(pack, "dimensions/" + pack.getName() + ".json");
@@ -133,7 +130,6 @@ public class HotDropWorldSVC extends Looper {
} catch (IOException | JsonParseException e) { } catch (IOException | JsonParseException e) {
Iris.reportError(e); Iris.reportError(e);
e.printStackTrace(); e.printStackTrace();
// Handle error (e.g., logging, user notification)
} }
} }
return version; return version;