summaryrefslogtreecommitdiff
path: root/src/net/minecraft/MinecraftLauncher.java
diff options
context:
space:
mode:
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 {