mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-09-28 14:13:01 -04:00
3.1 Config Updates Continued
This commit is contained in:
@@ -40,6 +40,7 @@ public class create extends script.base_script
|
||||
"maxMind",
|
||||
"maxWillpower"
|
||||
};
|
||||
private static final boolean AI_SCRIPTS_DISABLED = utils.checkConfigFlag("GameServer", "disableAI");
|
||||
public static obj_id staticObject(String objectName, location spawnLocation) throws InterruptedException
|
||||
{
|
||||
if (objectName == null)
|
||||
@@ -811,7 +812,7 @@ public class create extends script.base_script
|
||||
}
|
||||
public static void attachCreatureScripts(obj_id creature, String scriptList, boolean withAi) throws InterruptedException
|
||||
{
|
||||
if (ai.AI_SCRIPTS_DISABLED)
|
||||
if (AI_SCRIPTS_DISABLED)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user