Skip to content

Commit

Permalink
async
Browse files Browse the repository at this point in the history
  • Loading branch information
lilingfengdev committed Sep 8, 2024
1 parent 4760ccb commit 4fd3c06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
* 自动配置反作弊
* Geyser 自动配置
* GitHUB下载加速(Moeey)
* 自动服务端选择脚本

### 等待完成

* 自动服务端选择脚本


5 changes: 5 additions & 0 deletions src/auto-optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,11 @@ def optimize_purpur(purpur):
@handler("leaf_config/leaf_global_config.toml", toml.load, toml.dump)
def optimize_leaf_legacy(leaf):
leaf["async"]["async_pathfinding"]["enabled"] = True
leaf["async"]["async_pathfinding"]["max-threads"] = 4
leaf["async"]["async-entity-tracker"]["enabled"] = True
leaf["async"]["async-entity-tracker"]["max-threads"] = 4
if ask("使用 Citizens"):
leaf["async"]["async-entity-tracker"]["compat-mode"] = True
leaf["async"]["async_mob_spawning"]["enabled"] = True
if ask("使用的是Java 21+"):
leaf["performance"]["use_virtual_thread_for_async_scheduler"]["enabled"] = True
Expand Down

0 comments on commit 4fd3c06

Please sign in to comment.