Hello,
I have an issue with this mod when the server save and call the hook OnServerSave(). When it happen, it freeze my server, like an infinite loop is happening. (no error, no warning, everything stuck and proc at 100%)
I know this plugin is outdate, but may be I am not alone in this situation, so I wanted to make this post.
I do not have time to debug now, but I suspect the problem is coming from here:
void OnServerSave ()
{
SaveData ();
}
void SaveData()
{
int t = 0;
foreach (KeyValuePair<ulong, BankProfile> kvp in banks) {
if (kvp.Value.dirty) {
SaveProfile (kvp.Key, kvp.Value);
t++;
}
}
PrintToConsole ("Saved " + t.ToString () + " banks")
}Could it be a problem with this foreach loop?