From 1f32cfb206f16e4a56423cedeca408a4b81e65a9 Mon Sep 17 00:00:00 2001 From: Tropical <42101043+tropicaaal@users.noreply.github.com> Date: Mon, 23 Mar 2026 13:33:09 -0500 Subject: [PATCH] fix(hack): temporarily restore tutorial world functionality using old GameRuleManager logic --- .../Platform/Common/GameRules/GameRuleManager.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Minecraft.Client/Platform/Common/GameRules/GameRuleManager.cpp b/Minecraft.Client/Platform/Common/GameRules/GameRuleManager.cpp index 1b7c8c5a6..928fb1672 100644 --- a/Minecraft.Client/Platform/Common/GameRules/GameRuleManager.cpp +++ b/Minecraft.Client/Platform/Common/GameRules/GameRuleManager.cpp @@ -656,6 +656,7 @@ void GameRuleManager::loadDefaultGameRules() { #else // _XBOX +#ifndef __linux__ #ifdef _WINDOWS64 File packedTutorialFile(L"Windows64Media\\Tutorial\\Tutorial.pck"); if (!packedTutorialFile.exists()) @@ -676,7 +677,7 @@ void GameRuleManager::loadDefaultGameRules() { m_levelGenerators.getLevelGenerators()->at(0)->setDefaultSaveName( app.GetString(IDS_TUTORIALSAVENAME)); } -#if 0 +#else // 4jcraft, TODO this is using old pre-TU19 logic for loading the tutorial, modify to use the above ifdefs std::wstring fpTutorial = L"Tutorial.pck"; if(app.getArchiveFileSize(fpTutorial) >= 0) { @@ -685,8 +686,8 @@ void GameRuleManager::loadDefaultGameRules() { if ( app.m_dlcManager.readDLCDataFile(dwFilesProcessed,fpTutorial,pack,true) ) { app.m_dlcManager.addPack(pack); - //m_levelGenerators.getLevelGenerators()->at(0)->setWorldName(app.GetString(IDS_PLAY_TUTORIAL)); - //m_levelGenerators.getLevelGenerators()->at(0)->setDefaultSaveName(app.GetString(IDS_TUTORIALSAVENAME)); + m_levelGenerators.getLevelGenerators()->at(0)->setWorldName(app.GetString(IDS_PLAY_TUTORIAL)); + m_levelGenerators.getLevelGenerators()->at(0)->setDefaultSaveName(app.GetString(IDS_TUTORIALSAVENAME)); } else delete pack; }