2.0.10
This commit is contained in:
@@ -47,10 +47,13 @@ namespace CandyboxPlugin.Recipe
|
||||
|
||||
public void Reload()
|
||||
{
|
||||
if (File.Exists(_configurationPath))
|
||||
lock (_lockObject)
|
||||
{
|
||||
_learnedParameters =
|
||||
JsonSerializer.Deserialize<LearningParameters>(File.ReadAllText(_configurationPath));
|
||||
if (File.Exists(_configurationPath))
|
||||
{
|
||||
_learnedParameters =
|
||||
JsonSerializer.Deserialize<LearningParameters>(File.ReadAllText(_configurationPath));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user