Compile scripts to replace require with script content

This commit is contained in:
KingRainbow44
2023-08-31 01:08:30 -04:00
Unverified
parent 67c0e82dfb
commit d43e5ca608
5 changed files with 127 additions and 29 deletions
@@ -111,6 +111,12 @@ public class ConfigContainer {
public ServerRunMode runMode = ServerRunMode.HYBRID;
public boolean logCommands = false;
/**
* If enabled, the 'require' Lua function will load the script's compiled varient into the context. (faster; doesn't work as well)
* If disabled, all 'require' calls will be replaced with the referenced script's source. (slower; works better)
*/
public boolean fastRequire = true;
public HTTP http = new HTTP();
public Game game = new Game();