Further work on the script interface rework
This commit is contained in:
@@ -116,7 +116,8 @@ public class ScriptSet : IScriptSet
|
||||
var existing = _scripts.FirstOrDefault(s => s.Script?.Name == script.Name);
|
||||
if (existing != null)
|
||||
{
|
||||
existing.Script!.Stack();
|
||||
if (existing.Script is IScriptStack stackable)
|
||||
stackable.Stack();
|
||||
return existing;
|
||||
}
|
||||
|
||||
@@ -133,7 +134,8 @@ public class ScriptSet : IScriptSet
|
||||
var existing = _scripts.FirstOrDefault(s => s.Script?.Name == scriptKey);
|
||||
if (existing != null)
|
||||
{
|
||||
existing.Script!.Stack();
|
||||
if (existing.Script is IScriptStack stackable)
|
||||
stackable.Stack();
|
||||
return existing;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user