When a move is changed through the ChangeMove hook, update the script

This commit is contained in:
2024-12-22 11:27:03 +01:00
parent 45439a20a4
commit 06ce7fd38d
2 changed files with 11 additions and 5 deletions

View File

@@ -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;
}