From 69a230e603d6f06da37ce3bf9d4ae95eb528e58b Mon Sep 17 00:00:00 2001 From: Technici4n <13494793+Technici4n@users.noreply.github.com> Date: Tue, 17 Dec 2024 11:51:43 +0100 Subject: [PATCH] Add sci's comment --- src/main/java/appeng/me/GridNode.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/appeng/me/GridNode.java b/src/main/java/appeng/me/GridNode.java index 746cd1115bc..9a03525809e 100644 --- a/src/main/java/appeng/me/GridNode.java +++ b/src/main/java/appeng/me/GridNode.java @@ -110,6 +110,9 @@ public class GridNode implements IGridNode, IPathItem, IDebugExportable { */ private int lastUsedChannels = 0; /** + * The nearest ancestor of this node which restricts the number of maximum available channels for its subtree. It is + * {@code null} if the next node is a controller. + *

* Used to quickly walk the path to the controller when checking channel assignability, based on the observation * that the max channel count increases as we get to the controller, and that we only need to check the highest node * of each max channel count. @@ -119,8 +122,6 @@ public class GridNode implements IGridNode, IPathItem, IDebugExportable { * need to check that {@code dense cable 1} can accept the additional channel. If this is true then dense cables * {@code 2} and {@code 3} can always accept it. Same for regular cables, so it is enough to check that * {@code dense cable 1} and {@code cable 1} can accept it, massively speeding up the assignment for large trees. - *

- * This field is used to jump up the path. It is {@code null} if the next node is a controller. */ @Nullable private GridNode highestSimilarAncestor = null;