From 048f6dc0c558adf6bbb165cbe6514496446fa097 Mon Sep 17 00:00:00 2001 From: David Barnes Date: Fri, 3 Nov 2023 10:14:59 +0000 Subject: [PATCH] - Add an ENABLE_WARNINGS setting to disable the stopping while idle warning - Updated Reference URL to working github location --- src/SimplePath.lua | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/SimplePath.lua b/src/SimplePath.lua index 1d09866..ff44cd6 100644 --- a/src/SimplePath.lua +++ b/src/SimplePath.lua @@ -2,7 +2,7 @@ ------------------------------------------------------------------- Created by: @V3N0M_Z -Reference: https://v3n0m-z.github.io/RBLX-SimplePath/ +Reference: https://github.com/grayzcale/simplepath License: MIT --------------------------------------------------------------------- @@ -15,6 +15,10 @@ local DEFAULT_SETTINGS = { COMPARISON_CHECKS = 1; JUMP_WHEN_STUCK = true; + + ENABLE_WARNINGS = { + STOP_IDLE = false + } } --------------------------------------------------------------------- @@ -257,9 +261,11 @@ function Path:Stop() return end if self._status == Path.StatusType.Idle then - output(function(m) - warn(debug.traceback(m)) - end, "Attempt to run Path:Stop() in idle state") + if self._settings["ENABLE_WARNINGS"]["STOP_IDLE"] then + output(function(m) + warn(debug.traceback(m)) + end, "Attempt to run Path:Stop() in idle state") + end return end disconnectMoveConnection(self)