Fix development mode (Add -Dsilent.development=true to ur vm arguments)

This commit is contained in:
refactoring 2024-01-01 17:37:59 -05:00
parent 4ec5f971e6
commit 3d5049d662

View File

@ -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");
}
}