More logging

This commit is contained in:
mcrcortex
2025-01-15 03:40:14 +10:00
parent b7d8f82a3d
commit 3dcfd196a1

View File

@@ -257,7 +257,7 @@ public class NodeManager {
// Logger.error("UNFINISHED OPERATION TODO: FIXME: painful operation, needs to account for both adding and removing, need to do the same with inner node, but also create requests, or cleanup children");
int requestId = this.nodeData.getNodeRequest(nodeId);
var request = this.childRequests.get(requestId);// TODO: do not assume request is childRequest (it will probably always be)
if (request.getPosition() != pos) throw new IllegalStateException("Request is not at pos");
if (request.getPosition() != pos) throw new IllegalStateException("Request is not at pos, got " + WorldEngine.pprintPos(request.getPosition()) + " expected " + WorldEngine.pprintPos(pos));
{//Update the request
byte oldMsk = request.getMsk();
byte change = (byte) (oldMsk ^ childExistence);