Fixup to allow the threads access flag via making it public

Also adds fixup to build script
This commit is contained in:
Hugh Kaznowski 2025-02-10 00:37:20 +00:00
parent 37cb2e38f6
commit 9e0b970ff9
2 changed files with 5 additions and 5 deletions

View file

@ -82,7 +82,7 @@ public class ComputerPlayer extends PlayerImpl {
// * use your's CPU cores for best performance
// TODO: add server config to control max AI threads (with CPU cores by default)
// TODO: rework AI implementation to use multiple sims calculation instead one by one
final static int COMPUTER_MAX_THREADS_FOR_SIMULATIONS = 5;//DebugUtil.AI_ENABLE_DEBUG_MODE ? 1 : 5;
public final static int COMPUTER_MAX_THREADS_FOR_SIMULATIONS = DebugUtil.AI_ENABLE_DEBUG_MODE ? 1 : 5;

View file

@ -12,11 +12,11 @@ print "Start compiling...\n";
chdir("..");
system("mvn clean install package -DskipTests");
chdir("Mage.Client");
system("mvn assembly:assembly");
system("mvn assembly:single");
chdir("../Mage.Server");
system("mvn assembly:assembly");
system("mvn assembly:single");
chdir("../Mage.Server.Console");
system("mvn assembly:assembly");
system("mvn assembly:single");
chdir("..");
mkdir("temp");
chdir("temp");
@ -48,4 +48,4 @@ $zip->addFile("startMage.sh");
$zip->writeToFileNamed("../mage-bundle.zip");
chdir("..");
rmtree("temp");
rmtree("temp");