mirror of
https://github.com/Campofinale/CampofinaleBackup.git
synced 2025-12-12 22:54:37 +00:00
added disableLevelscripts on config file
This commit is contained in:
parent
80f0d16154
commit
3fbe2b6fc1
@ -18,6 +18,10 @@
|
||||
public bool missionsEnabled = false;
|
||||
public bool giveAllItems = false;
|
||||
/// <summary>
|
||||
/// Bug: on mobile some scenes doesn't want to load fine
|
||||
/// </summary>
|
||||
public bool disableLevelscripts = true;
|
||||
/// <summary>
|
||||
/// Not yet implemented
|
||||
/// </summary>
|
||||
public bool useEncryption = false;
|
||||
|
||||
@ -87,7 +87,15 @@ namespace Campofinale.Packets.Sc
|
||||
|
||||
session.sceneManager.GetCurScene().scripts.Add(sceneScript);
|
||||
}
|
||||
script.State = sceneScript.state;
|
||||
if (Server.config.serverOptions.disableLevelscripts)
|
||||
{
|
||||
script.State = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
script.State = sceneScript.state;
|
||||
}
|
||||
|
||||
int i = 0;
|
||||
foreach (var item in sceneScript.properties)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user