SHA256
Move UI Components from Component Package to UI Package
This commit is contained in:
1 parent
2ea5deaba1
commit
ef7f4c49a8
4 files changed
+14
-12
No files matched your search
@@ -56,18 +56,17 @@ namespace ADOFAIRenderer.Patch.ClassPatch
|
||||
var chainSequenceField = traverse.Field("chainSequence");
|
||||
var chainSequenceObj = chainSequenceField.GetValue();
|
||||
if (chainSequenceObj == null) return;
|
||||
|
||||
try
|
||||
{
|
||||
try
|
||||
{
|
||||
var killMethod = chainSequenceObj.GetType().GetMethod("Kill", new[] { typeof(bool) });
|
||||
killMethod?.Invoke(chainSequenceObj, new object[] { false });
|
||||
}
|
||||
catch
|
||||
{
|
||||
// Ignore reflection errors
|
||||
}
|
||||
chainSequenceField.SetValue(null);
|
||||
var killMethod = chainSequenceObj.GetType().GetMethod("Kill", new[] { typeof(bool) });
|
||||
killMethod?.Invoke(chainSequenceObj, new object[] { false });
|
||||
}
|
||||
catch
|
||||
{
|
||||
// Ignore reflection errors
|
||||
}
|
||||
chainSequenceField.SetValue(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user