Skip to content

Commit

Permalink
fix some
Browse files Browse the repository at this point in the history
  • Loading branch information
lilingfengdev committed Aug 31, 2024
1 parent bb7b72d commit 4760ccb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/auto-optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
print("开始优化!")

danger = ask("是否开启危险优化(会严重影响玩家体验)?")
experiment = ask("是否开启实验性优化(这些没有被合并到主分支)?")


@handler('server.properties', ServerPropLoader.load, ServerPropLoader.dump)
Expand Down Expand Up @@ -194,7 +195,6 @@ def optimize_paper_world(paper):
paper["tick-rates"]["mob-spawner"] = 2
paper["tick-rates"]["grass-spread"] = 4
paper["tick-rates"]["container-update"] = 1
paper["tick-rates"]["wet-farmland"] = 2
paper["environment"]["optimize-explosions"] = True
if danger:
paper["environment"]["treasure-maps"]["enabled"] = False
Expand All @@ -203,6 +203,10 @@ def optimize_paper_world(paper):
"loot-tables": True,
"villager-trade": True
}
if experiment:
paper["tick-rates"]["wet-farmland"] = 2
paper["spawn"]["keep-spawn-loaded"] = False
paper["spawn"]["keep-spawn-loaded-range"] = 3


@handler('config/gale-world-defaults.yml')
Expand Down
7 changes: 6 additions & 1 deletion src/config-anticheat.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

from utils import *
import zipfile, shutil

Expand All @@ -25,6 +24,12 @@ def config_via(via):
via["handle-pings-as-inv-acknowledgements"] = True


def install_obfuscator():
if ask("安装AntiCheatObfuscator(反作弊混淆器)"):
download("https://cdn.modrinth.com/data/Tr96sBMe/versions/n5HBUcnR/AntiCheatObfuscator-1.2.6.jar",
"plugins/AntiCheatObfuscator.jar")


if __name__ == "__main__":
print("导出/下载配置")
extract_zipfile()
Expand Down

0 comments on commit 4760ccb

Please sign in to comment.