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