From d0b5f32e2de56761a5d7b3f8c9828e28873f29b0 Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Sat, 25 Jan 2025 02:19:15 +1000 Subject: [PATCH] Update the child mask after removing nodes --- .../core/rendering/hierachical/NodeManager.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/java/me/cortex/voxy/client/core/rendering/hierachical/NodeManager.java b/src/main/java/me/cortex/voxy/client/core/rendering/hierachical/NodeManager.java index 4279156d..f2024baa 100644 --- a/src/main/java/me/cortex/voxy/client/core/rendering/hierachical/NodeManager.java +++ b/src/main/java/me/cortex/voxy/client/core/rendering/hierachical/NodeManager.java @@ -413,9 +413,10 @@ public class NodeManager { long cPos = makeChildPos(pos, i); this.recurseRemoveNode(cPos); - //TOdo: update the child existance afak } - //TODO:FIXME:FINISH:CRITICAL + + //TODO: check this is ok and correct + this.nodeData.setNodeChildExistence(nodeId&NODE_ID_MSK, childExistence); } } } @@ -444,6 +445,7 @@ public class NodeManager { var req = this.childRequests.get(reqId); childExistence ^= req.getMsk(); + //TODO FINISH this.childRequests.release(reqId);//Release the request } @@ -814,7 +816,7 @@ public class NodeManager { debug.add("NC/IF: " + this.activeSectionMap.size() + "/" + (this.singleRequests.count() + this.childRequests.count())); } - //public int getCurrentMaxNodeId() { - // return this.nodeData.getEndNodeId(); - //} + public int getCurrentMaxNodeId() { + return this.nodeData.getEndNodeId(); + } }