When a move is changed through the ChangeMove hook, update the script
This commit is contained in:
2 files changed
+11
-5
No files matched your search
@@ -49,10 +49,7 @@ public class ScriptContainer : IEnumerable<ScriptContainer>
|
||||
/// <param name="script"></param>
|
||||
public void Set(Script script)
|
||||
{
|
||||
if (Script is not null)
|
||||
{
|
||||
Script.OnRemove();
|
||||
}
|
||||
Script?.OnRemove();
|
||||
Script = script;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user