diff --git a/.idea/discord.xml b/.idea/discord.xml new file mode 100644 index 0000000..d8e9561 --- /dev/null +++ b/.idea/discord.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/src/com/stupidrepo/mcscanner/MCScanner.java b/src/com/stupidrepo/mcscanner/MCScanner.java index ff8211d..5d078f9 100644 --- a/src/com/stupidrepo/mcscanner/MCScanner.java +++ b/src/com/stupidrepo/mcscanner/MCScanner.java @@ -133,25 +133,25 @@ public void windowClosing(java.awt.event.WindowEvent windowEvent) { int thisOffsetJ = offsetJ; int thisOffsetK = offsetK; int thisOffsetL = offsetL; - for (int i = thisOffsetI; i <= (maxRange-thisOffsetI); ++i) { + for (int i = thisOffsetI; i <= maxRange; ++i) { if(stopping) { break; } else { offsetI = i; } - for (int j = thisOffsetJ; j <= (255-thisOffsetJ); ++j) { + for (int j = thisOffsetJ; j <= 255; ++j) { if(stopping) { break; } else { offsetJ = j; } - for (int k = thisOffsetK; k <= (255-thisOffsetK); ++k) { + for (int k = thisOffsetK; k <= 255; ++k) { if(stopping) { break; } else { offsetK = k; } - for (int l = thisOffsetL; l <= (255-thisOffsetL); ++l) { + for (int l = thisOffsetL; l <= 255; ++l) { String ip = "..."; if(stopping) { break; @@ -178,8 +178,11 @@ public void windowClosing(java.awt.event.WindowEvent windowEvent) { threadList.clear(); } } + thisOffsetL = 0; } + thisOffsetK = 0; } + thisOffsetJ = 0; } for (Thread nextThreadAgain: threadList) {