Add -no-crc & -dev Arguments To Client

This commit is contained in:
Dark98
2021-12-14 01:39:54 +00:00
parent 6d23a5b536
commit 79357215c7
2 changed files with 11 additions and 4 deletions
@@ -33,7 +33,7 @@ public class ClientSettings {
/**
* Enables/Disables FileServer CRC Checking For Cache Updates
*/
public static final boolean CHECK_CRC = true;
public static boolean CHECK_CRC = true;
/**
* The Npc Bits for the Server
+10 -3
View File
@@ -8,10 +8,7 @@ public final class Main {
DEAR DEVELOPER!
If you want to run the client locally, the easiest way to do that is run the class "Client.java" instead!
If you REALLY want to use this class, add program arguments "-s localhost".
But seriously, Client.java is just a copy-paste of this class and does it locally. Use that instead!
*/
public static void main(String[] args) {
@@ -25,6 +22,16 @@ public final class Main {
case "-ip":
ClientSettings.SERVER_IP = args[++i];
break;
case "-no-crc":
case "-no-cache-crc":
ClientSettings.CHECK_CRC = false;
break;
case "-dev" :
case "-local":
case "-offline":
ClientSettings.SERVER_IP = "localhost";
ClientSettings.CHECK_CRC = false;
break;
}
}
}