You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: Fix node removals failing. (#587)
* Fix node removals failing.
1. Correct patch name (cosmetic).
2. fix Removals being done only 1 time ever by making a copy of the list.
3. Properly log on removal failure.
4. fix the CopyCraftNode which was not working right making it so the removal was failing.
* Fix double parent removal
* Increase version to 1.0.0-pre.36
---------
Co-authored-by: Joshua Gibbs <[email protected]>
if(!currentNode.parent.RemoveNode(currentNode))// Remove the node from its parent
156
+
{
157
+
InternalLogger.Warn($"Skipped removing craft tree node in {nameof(RemoveNodes)} for '{nodeToRemove.Scheme}' at '{string.Join("/",nodeToRemove.Path)}'. Could not remove the node.");
158
+
continue;
159
+
}
155
160
currentNode.Clear();// Remove all child nodes (if any)
156
-
currentNode.parent.RemoveNode(currentNode);// Remove the node from its parent
157
161
nodesToRemove.Remove(nodeToRemove);// Remove the node from the list of nodes to remove
158
162
InternalLogger.Debug($"Removed node from {nodeToRemove.Scheme} tree at {string.Join("/",nodeToRemove.Path)}.");
0 commit comments