fix config and upkg name
This commit is contained in:
parent
a7d8cca6d2
commit
6777cefdcb
@ -11,11 +11,7 @@ public function PreBeginPlay()
|
||||
{
|
||||
Super.PreBeginPlay();
|
||||
|
||||
LogLevel = SML.default.LogLevel;
|
||||
if (LogLevel == LL_WrongLevel)
|
||||
{
|
||||
LogLevel = LL_Info;
|
||||
}
|
||||
LogLevel = SML.static.GetLogLevel();
|
||||
|
||||
`Log_Trace();
|
||||
|
||||
@ -85,12 +81,12 @@ private function ModifyLoad()
|
||||
++Index;
|
||||
}
|
||||
}
|
||||
SML.static.StaticSaveConfig();
|
||||
|
||||
JoinArray(Mutators, MutatorsRaw);
|
||||
LoadURL $= (Subst(OptMut) $ MutatorsRaw);
|
||||
if (SML.static.WantsToSpawn())
|
||||
{
|
||||
SML.static.StaticSaveConfig();
|
||||
LoadURL $= (Subst(OptAC) $ SML.static.GetName());
|
||||
}
|
||||
|
||||
|
@ -2,18 +2,14 @@ class SafeMutLoader extends KFAccessControl
|
||||
config(SML);
|
||||
|
||||
var private Array<Actor> ServerActors;
|
||||
var public config E_LogLevel LogLevel;
|
||||
var private config E_LogLevel LogLevel;
|
||||
var private config Array<String> Mutators;
|
||||
|
||||
public function PreBeginPlay()
|
||||
{
|
||||
`Log_Trace();
|
||||
|
||||
if (LogLevel == LL_WrongLevel)
|
||||
{
|
||||
LogLevel = LL_Info;
|
||||
StaticSaveConfig();
|
||||
}
|
||||
LogLevel = GetLogLevel();
|
||||
|
||||
LoadActors();
|
||||
|
||||
@ -129,6 +125,17 @@ public function OnClientConnectionClose(Player ClientConnection)
|
||||
Super.OnClientConnectionClose(ClientConnection);
|
||||
}
|
||||
|
||||
public static function E_LogLevel GetLogLevel()
|
||||
{
|
||||
if (default.LogLevel == LL_WrongLevel)
|
||||
{
|
||||
default.LogLevel = LL_Info;
|
||||
StaticSaveConfig();
|
||||
}
|
||||
|
||||
return default.LogLevel;
|
||||
}
|
||||
|
||||
private static function class<Actor> GetMutReplacement(class<Mutator> MutClass)
|
||||
{
|
||||
if (MutClass == None || MutClass.static.GetLocalString() == "") return None;
|
||||
|
Loading…
Reference in New Issue
Block a user