diff --git a/Minecraft.Client/Common/UI/UIScene_CreateWorldMenu.cpp b/Minecraft.Client/Common/UI/UIScene_CreateWorldMenu.cpp index 0eb7a792..e284644c 100644 --- a/Minecraft.Client/Common/UI/UIScene_CreateWorldMenu.cpp +++ b/Minecraft.Client/Common/UI/UIScene_CreateWorldMenu.cpp @@ -1232,8 +1232,7 @@ void UIScene_CreateWorldMenu::CreateGame(UIScene_CreateWorldMenu* pClass, DWORD if( isNumber ) value = _fromString(wSeed); - //If the value is not 0 use it, otherwise use the algorithm from the java String.hashCode() function to hash it - if( value != 0 ) + if( isNumber ) seedValue = value; else { diff --git a/Minecraft.Client/Common/XUI/XUI_MultiGameCreate.cpp b/Minecraft.Client/Common/XUI/XUI_MultiGameCreate.cpp index 529a5318..88a970ea 100644 --- a/Minecraft.Client/Common/XUI/XUI_MultiGameCreate.cpp +++ b/Minecraft.Client/Common/XUI/XUI_MultiGameCreate.cpp @@ -925,8 +925,7 @@ void CScene_MultiGameCreate::CreateGame(CScene_MultiGameCreate* pClass, DWORD dw if( isNumber ) value = _fromString(wSeed); - //If the value is not 0 use it, otherwise use the algorithm from the java String.hashCode() function to hash it - if( value != 0 ) + if( isNumber ) seedValue = value; else {