Feature: Автоматическое обновление core-engine.dev.js

This commit is contained in:
Reider745
2024-03-28 11:36:12 +03:00
parent bbec68d0a2
commit f2fc6896e1
@@ -253,6 +253,17 @@ public class InnerCoreServer {
}
unpackResources("/innercore_default_config.json", dataPath);
{
InputStream inputStream = InnerCoreServer.class.getClassLoader().getResourceAsStream("innercore/coreengine/core-engine.dev.js");
File file = new File(dataPath+"/innercore/coreengine/core-engine.dev.js");
file.createNewFile();
OutputStream outputStream = new FileOutputStream(file);
outputStream.write(inputStream.readAllBytes());
inputStream.close();
outputStream.close();
}
// Required to be called before modpack instantiation
FileTools.init();