mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-23 15:36:07 +00:00
|
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
## 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 |
||
|---|---|---|
| .. | ||
| Audio | ||
| Colours | ||
| DLC | ||
| DummyTexturePack/res | ||
| GameRules | ||
| Leaderboards | ||
| Media | ||
| Network | ||
| res | ||
| Telemetry | ||
| Trial | ||
| Tutorial | ||
| UI | ||
| XUI | ||
| zlib | ||
| App_Defines.h | ||
| App_enums.h | ||
| App_structs.h | ||
| C4JMemoryPool.h | ||
| C4JMemoryPoolAllocator.h | ||
| Console_Awards_enum.h | ||
| Console_Debug_enum.h | ||
| Console_Utils.cpp | ||
| ConsoleGameMode.cpp | ||
| ConsoleGameMode.h | ||
| Consoles_App.cpp | ||
| Consoles_App.h | ||
| Minecraft_Macros.h | ||
| PostProcesser.h | ||
| Potion_Macros.h | ||
| xuiscene_base.h | ||