Browse Source

Timings - remove treasure, change vd recommendation

pull/16/head
DrBot7 4 years ago
parent
commit
96a699af2c
  1. 12
      cogs/timings_check.yml
  2. 6
      cogs/timings_public.py

12
cogs/timings_check.yml

@ -208,7 +208,7 @@ config:
- int(server_properties["view-distance"]) >= 10
- spigot["world-settings"]["default"]["view-distance"] == "default"
prefix: "❌"
value: "Decrease this from default (10) in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 3."
value: "Decrease this from default (10) in [spigot.yml](http://bit.ly/spiconf).\nRecommended: 4."
entity-activation-range.animals:
- expressions:
- int(spigot["world-settings"]["default"]["entity-activation-range"]["animals"]) >= 32
@ -415,11 +415,6 @@ config:
- paper["world-settings"]["default"]["alt-item-despawn-rate"]["enabled"] == "false"
prefix: "❌"
value: "Enable this in [paper.yml](http://bit.ly/paperconf)."
enable-treasure-maps:
- expressions:
- paper["world-settings"]["default"]["enable-treasure-maps"] == "true"
prefix: "❌"
value: "Disable this in [paper.yml](http://bit.ly/paperconf). Generating treasure maps can be extremely expensive if the structure it's trying to locate is far away."
entity-per-chunk-save-limit.experience_orb:
- expressions:
- int(paper["world-settings"]["default"]["entity-per-chunk-save-limit"]["experience_orb"]) == -1
@ -457,11 +452,6 @@ config:
- purpur["settings"]["dont-send-useless-entity-packets"] == "false"
prefix: "❌"
value: "Enable this in [purpur.yml](http://bit.ly/purpurc)."
mobs.dolphin.disable-treasure-searching:
- expressions:
- purpur["world-settings"]["default"]["mobs"]["dolphin"]["disable-treasure-searching"] == "false"
prefix: "❌"
value: "Enable this in [purpur.yml](http://bit.ly/purpurc)."
mobs.villager.brain-ticks:
- expressions:
- int(purpur["world-settings"]["default"]["mobs"]["villager"]["brain-ticks"]) == 1

6
cogs/timings_public.py

@ -233,15 +233,15 @@ class Timings(commands.Cog):
for world in worlds:
tvd = int(request_raw["worlds"][world]["ticking-distance"])
ntvd = int(request_raw["worlds"][world]["notick-viewdistance"])
if ntvd <= tvd and tvd >= 4:
if ntvd <= tvd and tvd >= 5:
if spigot["world-settings"]["default"]["view-distance"] == "default":
embed_var.add_field(name="❌ no-tick-view-distance",
value=f"Set in [paper.yml](http://bit.ly/paperconf). Recommended: {tvd}. "
f"And reduce view-distance from default ({tvd}) in [spigot.yml](http://bit.ly/spiconf). Recommended: 3.")
f"And reduce view-distance from default ({tvd}) in [spigot.yml](http://bit.ly/spiconf). Recommended: 4.")
else:
embed_var.add_field(name="❌ no-tick-view-distance",
value=f"Set in [paper.yml](http://bit.ly/paperconf). Recommended: {tvd}. "
f"And reduce view-distance from {tvd} in [spigot.yml](http://bit.ly/spiconf). Recommended: 3.")
f"And reduce view-distance from {tvd} in [spigot.yml](http://bit.ly/spiconf). Recommended: 4.")
break
except KeyError as key:
print("Missing: " + str(key))

Loading…
Cancel
Save