From dbac788a22e9b938a8fbbf114a3f4f0ecc770060 Mon Sep 17 00:00:00 2001 From: DrBot7 <46543473+DrBot7@users.noreply.github.com> Date: Mon, 25 Jan 2021 16:49:55 -0600 Subject: [PATCH] Timings - Fix bug with multiple ntvd errors --- cogs/timings_public.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cogs/timings_public.py b/cogs/timings_public.py index 7125b39..3e22a60 100644 --- a/cogs/timings_public.py +++ b/cogs/timings_public.py @@ -229,14 +229,11 @@ class Timings(commands.Cog): try: using_tweaks = "ViewDistanceTweaks" in plugins if not using_tweaks: - using_ntvd = True worlds = request_raw["worlds"] 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: - using_ntvd = False - if not using_ntvd: 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}. " @@ -245,6 +242,7 @@ class Timings(commands.Cog): 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.") + break except KeyError as key: print("Missing: " + str(key))