Merge pull request #3131 from Abextm/dev-always-assert
runelite-client: Require assertions when developer mode is on
This commit is contained in:
@@ -146,6 +146,16 @@ public class RuneLite
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
if (RuneLite.getOptions().has("developer-mode"))
|
||||
{
|
||||
boolean assertions = false;
|
||||
assert assertions = true;
|
||||
if (!assertions)
|
||||
{
|
||||
throw new RuntimeException("Developers should enable assertions; Add `-ea` to your JVM arguments`");
|
||||
}
|
||||
}
|
||||
|
||||
PROFILES_DIR.mkdirs();
|
||||
|
||||
// Setup logger
|
||||
|
||||
Reference in New Issue
Block a user