Make into error

This commit is contained in:
mcrcortex
2025-06-07 14:41:18 +10:00
parent 66266fb426
commit f252fa3a7a

View File

@@ -281,6 +281,7 @@ public class AsyncNodeManager {
break; break;
workDone++; workDone++;
long ptr = job.address; long ptr = job.address;
int zeroCount = 0;
for (int i = 0; i < NodeCleaner.OUTPUT_COUNT; i++) { for (int i = 0; i < NodeCleaner.OUTPUT_COUNT; i++) {
long pos = ((long) MemoryUtil.memGetInt(ptr)) << 32; ptr += 4; long pos = ((long) MemoryUtil.memGetInt(ptr)) << 32; ptr += 4;
pos |= Integer.toUnsignedLong(MemoryUtil.memGetInt(ptr)); ptr += 4; pos |= Integer.toUnsignedLong(MemoryUtil.memGetInt(ptr)); ptr += 4;
@@ -290,9 +291,8 @@ public class AsyncNodeManager {
continue; continue;
} }
if (pos == 0) { if (pos == 0 && zeroCount++>0) {
//THIS SHOULD BE IMPOSSIBLE Logger.error("Remove node pos is 0 " + zeroCount + " times, this is really bad, please report" );
//TODO: VVVVV MUCH MEGA FIX
continue; continue;
} }