Fix RamUsage
Dieser Commit ist enthalten in:
Ursprung
fb3a36e02a
Commit
56b92c2c27
@ -44,9 +44,9 @@ public class RamUsage implements Listener {
|
||||
long presumableFreeMemory = Runtime.getRuntime().maxMemory() - allocatedMemory;
|
||||
double percentageFree = presumableFreeMemory / (double) Runtime.getRuntime().maxMemory();
|
||||
bossBar.setProgress(1 - percentageFree);
|
||||
if (mode && percentageFree > 0.7) {
|
||||
if (mode && percentageFree > 0.75) {
|
||||
mode = false;
|
||||
} else if (!mode && percentageFree < 0.5) {
|
||||
} else if (!mode && percentageFree < 0.6) {
|
||||
mode = true;
|
||||
}
|
||||
if (mode) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren