More debug

This commit is contained in:
mcrcortex
2024-12-13 23:03:32 +10:00
parent a62413ed0b
commit aa1ba08f70

View File

@@ -438,7 +438,11 @@ public class NodeManager2 {
int pid = this.activeSectionMap.put(childPos, requestId|NODE_TYPE_REQUEST|REQUEST_TYPE_CHILD); int pid = this.activeSectionMap.put(childPos, requestId|NODE_TYPE_REQUEST|REQUEST_TYPE_CHILD);
if (pid != -1) { if (pid != -1) {
throw new IllegalStateException("Leaf request creation failed to insert child into map as a mapping already existed for the node! pos: " + WorldEngine.pprintPos(childPos) + " id: " + pid); String extra = "";
if ((pid&NODE_TYPE_MSK)==NODE_TYPE_LEAF) {
extra = " type leaf: pos " + WorldEngine.pprintPos( this.nodeData.nodePosition(pid)) + " hasRequest: " + this.nodeData.isNodeRequestInFlight(pid);
}
throw new IllegalStateException("Leaf request creation failed to insert child into map as a mapping already existed for the node! pos: " + WorldEngine.pprintPos(childPos) + " id: " + pid + " for parent " + WorldEngine.pprintPos(pos) + " extra " + extra);
} }
//Watch and request the child node at the given position //Watch and request the child node at the given position