From 3276094714884536528a44817a1f04019c117a88 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 2 May 2021 12:21:36 +0200 Subject: [PATCH] Fix RamUsage --- .../src/de/steamwar/bausystem/features/world/RamUsage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/world/RamUsage.java b/BauSystem_Main/src/de/steamwar/bausystem/features/world/RamUsage.java index dfe551bc..56ceab69 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/world/RamUsage.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/world/RamUsage.java @@ -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.75) { + if (mode && percentageFree > 0.6) { mode = false; - } else if (!mode && percentageFree < 0.6) { + } else if (!mode && percentageFree < 0.4) { mode = true; } if (mode) {