generated from AriasCreations/vsmodtemplate
Fix setting/going/deleting home without name argument
This commit is contained in:
parent
d35d888386
commit
9522b6d941
4 changed files with 10 additions and 9 deletions
|
@ -192,7 +192,7 @@ namespace AriasServerUtils
|
|||
|
||||
public void SaveGlobalConfig()
|
||||
{
|
||||
API.StoreModConfig<ASUModConfig>(config, GetConfigurationFile("", ModConfigType.Global));
|
||||
API.StoreModConfig<ASUModConfig>(config, GetConfigurationFile("global", ModConfigType.Global));
|
||||
}
|
||||
|
||||
private void OnGameReady()
|
||||
|
@ -200,7 +200,7 @@ namespace AriasServerUtils
|
|||
// Mod Setup Info //
|
||||
// -> Step 1. Load Mod Global Config <-
|
||||
|
||||
config = API.LoadModConfig<ASUModConfig>(GetConfigurationFile("", ModConfigType.Global));
|
||||
config = API.LoadModConfig<ASUModConfig>(GetConfigurationFile("global", ModConfigType.Global));
|
||||
if (config == null) config = new ASUModConfig();
|
||||
}
|
||||
|
||||
|
@ -208,7 +208,7 @@ namespace AriasServerUtils
|
|||
{
|
||||
if (type == ModConfigType.Global)
|
||||
{
|
||||
return "ariaserverconfig/global.json";
|
||||
return $"ariaserverconfig/{sName}.json";
|
||||
}
|
||||
else if (type == ModConfigType.World)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue