MinecraftConsoles/Minecraft.Client/Common
blongm d3412aaae7
Some checks failed
Nightly Server Release / build (Windows64) (push) Has been cancelled
Nightly Release / build (Windows64) (push) Has been cancelled
Nightly Server Release / release (push) Has been cancelled
Nightly Server Release / Build and Push Docker Image (push) Has been cancelled
Nightly Server Release / cleanup (push) Has been cancelled
Nightly Release / release (push) Has been cancelled
Nightly Release / cleanup (push) Has been cancelled
Fixed issue with world seeds not saving correctly (#1119)
## Description
Fix issue where typing in a short seed on world creation doesn't save the seed correctly

## Changes

### Previous Behavior
Typing in a seed on the world creation menu that's less than 8 characters long will result in garbage data being saved as the seed. Happens with controller and KBM.
You can see this in-game - if you exit the world options menu and go back in, the seed will show up as boxes □□□.
Weirdly, if you type a seed again, it behaves as expected.

### Root Cause
For some reason, assigning `m_params->seed` to the seed text points it to garbage data, when it's 7 characters or less.

### New Behavior
Seed entry behaves as expected.

### Fix Implementation
- Added `static_cast<wstring>` before assignment to `m_params->seed`.
- Also replaced `(wchar_t *)` with `reinterpret_cast<wchar_t*>` in the functions.

### AI Use Disclosure
No AI was used
2026-03-30 06:05:32 -05:00
..
Audio Fix quiet in-game audio after engine update #897 (#1171) 2026-03-12 01:43:12 -05:00
Colours Modernize project codebase (#906) 2026-03-08 18:08:36 -05:00
DLC Fix game crashing if DLC has XMLVERSION paramater (#1285) 2026-03-27 15:11:27 -05:00
DummyTexturePack/res Initial commit 2026-03-01 12:16:08 +08:00
GameRules Fixed DLC map loading / saving, missing chunks (#1114) 2026-03-10 22:04:19 -05:00
Leaderboards Modernize project codebase (#906) 2026-03-08 18:08:36 -05:00
Media Fix Sign (#1369) 2026-03-21 17:49:21 -04:00
Network Add asynchronous server joining (#1408) 2026-03-26 10:15:11 -04:00
res Move project to CMake (#781) 2026-03-17 16:39:22 -05:00
Telemetry Modernize project codebase (#906) 2026-03-08 18:08:36 -05:00
Trial Initial commit 2026-03-01 12:16:08 +08:00
Tutorial Modernize project codebase (#906) 2026-03-08 18:08:36 -05:00
UI Fixed issue with world seeds not saving correctly (#1119) 2026-03-30 06:05:32 -05:00
XUI Modernize project codebase (#906) 2026-03-08 18:08:36 -05:00
zlib Modernize project codebase (#906) 2026-03-08 18:08:36 -05:00
App_Defines.h feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
App_enums.h Add Render Distance option. (#675) 2026-03-06 19:14:06 -06:00
App_structs.h Save FOV value to settings (#670) 2026-03-06 16:38:16 -06:00
C4JMemoryPool.h Initial commit 2026-03-01 12:16:08 +08:00
C4JMemoryPoolAllocator.h Initial commit 2026-03-01 12:16:08 +08:00
Console_Awards_enum.h Initial commit 2026-03-01 12:16:08 +08:00
Console_Debug_enum.h feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
Console_Utils.cpp Dedicated Server Software - Minecraft.Server.exe (#498) 2026-03-15 02:32:50 -05:00
ConsoleGameMode.cpp Optimize Path for Tutorial.h in ConsoleGameMode.cpp 2026-03-01 15:05:24 -07:00
ConsoleGameMode.h Optimize TutorialMode.h Filepath in ConsoleGameMode.h 2026-03-01 15:06:42 -07:00
Consoles_App.cpp Dedicated Server Software - Minecraft.Server.exe (#498) 2026-03-15 02:32:50 -05:00
Consoles_App.h Modernize project codebase (#906) 2026-03-08 18:08:36 -05:00
Minecraft_Macros.h Initial commit 2026-03-01 12:16:08 +08:00
PostProcesser.h Fix split-screen UI wrong positioning on window resize (#989) 2026-03-08 22:16:58 -05:00
Potion_Macros.h feat: TU19 (Dec 2014) Features & Content (#155) 2026-03-03 03:04:10 +08:00
xuiscene_base.h Initial commit 2026-03-01 12:16:08 +08:00