Skip to content

Commit

Permalink
Remove enableClientChunkPreGeneration setting option
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Jan 8, 2023
1 parent 36bae41 commit 61b7716
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 24 deletions.
1 change: 0 additions & 1 deletion LiteLoader/include/liteloader/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ struct LLConfig {
bool enableFixBDSCrash = true;
bool enableParticleAPI = false;
bool enablePermissionAPI = true;
bool enableClientChunkPreGeneration = true;
bool enableFixAbility = true;
std::vector<std::string> outputFilterRegex = {};
};
Expand Down
16 changes: 0 additions & 16 deletions LiteLoader/src/liteloader/BuiltinBugFix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,22 +398,6 @@ TInstanceHook(BlockSource*, "?getRegionConst@Actor@@QEBAAEBVBlockSource@@XZ", Ac
return bs;
}

THook(void*, "?write@StartGamePacket@@UEBAXAEAVBinaryStream@@@Z", void* a, void* b) {
if (!ll::globalConfig.enableClientChunkPreGeneration) {
dAccess<bool, 1280>(a) = false;
}
return original(a, b);
}

THook(bool, "?isEnabled@FeatureToggles@@QEBA_NW4FeatureOptionID@@@Z", __int64 a1, int a2) {
if (!ll::globalConfig.enableClientChunkPreGeneration) {
if (a2 == 59) {
return 0;
}
}
return original(a1, a2);
}

//From https://github.com/dreamguxiang/BETweaker
enum class AbilitiesLayer;
enum class SubClientId;
Expand Down
7 changes: 0 additions & 7 deletions LiteLoader/src/liteloader/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ void inline to_json(nlohmann::json& j, const LLConfig& conf) {
}},
{"PermissionAPI", {
{"enabled", conf.enablePermissionAPI}
}},
{"ClientChunkPreGeneration", {
{"enabled", conf.enableClientChunkPreGeneration}
}},
{"FixAbility", {
{"enabled", conf.enableFixAbility}
Expand Down Expand Up @@ -216,10 +213,6 @@ void inline from_json(const nlohmann::json& j, LLConfig& conf) {
const nlohmann::json& setting = modules.at("PermissionAPI");
conf.enablePermissionAPI = setting.value("enabled", false);
}
if (modules.find("ClientChunkPreGeneration") != modules.end()) {
const nlohmann::json& setting = modules.at("ClientChunkPreGeneration");
conf.enableClientChunkPreGeneration = setting.value("enabled", true);
}
if (modules.find("FixAbility") != modules.end()) {
const nlohmann::json& setting = modules.at("FixAbility");
conf.enableFixAbility = setting.value("enabled", true);
Expand Down

0 comments on commit 61b7716

Please sign in to comment.