feat: Feat/expanded worlds (#107)

* it works kinda but its laggy

* attempt at making it faster

* Revert "attempt at making it faster"

This reverts commit 32a68ed3aec5827362f6a232adfc6d06a93ea355.

* Revert "it works kinda but its laggy"

This reverts commit 2830b973d4fecafd86969192917a5ab5fc7b9758.

* round robin client chunk cache, expanded world type
This commit is contained in:
DrPerkyLegit
2026-05-24 14:50:12 -04:00
committed by GitHub
parent 5d196d97cf
commit 98c33aa677
7 changed files with 43 additions and 19 deletions

View File

@@ -628,6 +628,8 @@ static std::string WorldSizeToPropertyValue(int worldSize)
return "medium";
case e_worldSize_Large:
return "large";
case e_worldSize_Expanded:
return "expanded";
case e_worldSize_Classic:
default:
return "classic";
@@ -644,6 +646,8 @@ static int WorldSizeToXzChunks(int worldSize)
return LEVEL_WIDTH_MEDIUM;
case e_worldSize_Large:
return LEVEL_WIDTH_LARGE;
case e_worldSize_Expanded:
return LEVEL_WIDTH_EXPANDED;
case e_worldSize_Classic:
default:
return LEVEL_WIDTH_CLASSIC;
@@ -659,6 +663,7 @@ static int WorldSizeToHellScale(int worldSize)
case e_worldSize_Medium:
return HELL_LEVEL_SCALE_MEDIUM;
case e_worldSize_Large:
case e_worldSize_Expanded:
return HELL_LEVEL_SCALE_LARGE;
case e_worldSize_Classic:
default:
@@ -694,6 +699,12 @@ static bool TryParseWorldSize(const std::string &lowered, int *outWorldSize)
return true;
}
if (lowered == "expanded" || lowered == "344" || lowered == "8")
{
*outWorldSize = e_worldSize_Expanded;
return true;
}
return false;
}