summaryrefslogtreecommitdiff
path: root/src/net/minecraft/MinecraftLauncher.java
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-08-24 08:54:55 -0600
committercflip <cflip@cflip.net>2023-08-24 08:54:55 -0600
commit25c7fdf05c59df4734268266fb0bc684d9c80542 (patch)
treea68a9af2c409c147bed4a1cfbffeb324af0ec7e6 /src/net/minecraft/MinecraftLauncher.java
parent5a7d6a1d7efb249fe3360330704e8ae647ae3a8f (diff)
Fix decompiler-related issues to get the launcher to run
Diffstat (limited to 'src/net/minecraft/MinecraftLauncher.java')
-rw-r--r--src/net/minecraft/MinecraftLauncher.java4
1 files changed, 2 insertions, 2 deletions
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 {