Fix Flame recommended RAM check

Signed-off-by: Felix Schnabel <f.schnabel@tum.de>
This commit is contained in:
Felix Schnabel 2026-04-06 17:30:20 +02:00 committed by Felix Schnabel
parent b0f7ae1223
commit 68efc9b9df
No known key found for this signature in database
GPG key ID: 6E2956908734607F

View file

@ -413,7 +413,7 @@ std::unique_ptr<MinecraftInstance> FlameCreationTask::createInstance()
int recommendedRAM = m_pack.minecraft.recommendedRAM;
// only set memory if this is a fresh instance
if (m_instance == nullptr && recommendedRAM > 0) {
if (!m_instance && recommendedRAM > 0) {
const uint64_t sysMiB = HardwareInfo::totalRamMiB();
const uint64_t max = sysMiB * 0.9;