From 25c7fdf05c59df4734268266fb0bc684d9c80542 Mon Sep 17 00:00:00 2001 From: cflip Date: Thu, 24 Aug 2023 08:54:55 -0600 Subject: Fix decompiler-related issues to get the launcher to run --- src/net/minecraft/MinecraftLauncher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/minecraft/MinecraftLauncher.java') diff --git a/src/net/minecraft/MinecraftLauncher.java b/src/net/minecraft/MinecraftLauncher.java index 14d2e5f..7b2fead 100644 --- a/src/net/minecraft/MinecraftLauncher.java +++ b/src/net/minecraft/MinecraftLauncher.java @@ -7,9 +7,9 @@ public class MinecraftLauncher { private static final int RECOMMENDED_HEAP = 1024; public static void main(String[] args) throws Exception { - float heapSizeMegs = (float) (Runtime.getRuntime().maxMemory() / 1024L / 1024L); + float heapSizeMegs = (float) (Runtime.getRuntime().maxMemory() / RECOMMENDED_HEAP / RECOMMENDED_HEAP); - if (heapSizeMegs > 511.0F) { + if (heapSizeMegs > MIN_HEAP) { LauncherFrame.main(args); } else { try { -- cgit v1.2.3