mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 07:01:32 +01:00
Fix development mode (Add -Dsilent.development=true to ur vm arguments)
This commit is contained in:
parent
4ec5f971e6
commit
3d5049d662
@ -2,12 +2,6 @@ package net.silentclient.client.utils;
|
||||
|
||||
public class ClientUtils {
|
||||
public static boolean isDevelopment() {
|
||||
for(StackTraceElement element : Thread.currentThread().getStackTrace()) {
|
||||
if(element.getClassName().equals("GradleStart")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
return System.getProperty("silent.development").equals("true");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user