From 860678e57f584d8b0c661c969950eeda016eebd2 Mon Sep 17 00:00:00 2001 From: Alexander Nell Date: Thu, 7 May 2020 13:05:39 +0200 Subject: [PATCH] Do not call the Waypoint-Callback itself again --- core/Callbacks/TrackManiaCallbacks.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/Callbacks/TrackManiaCallbacks.php b/core/Callbacks/TrackManiaCallbacks.php index 1047a5f3..9e7d362b 100644 --- a/core/Callbacks/TrackManiaCallbacks.php +++ b/core/Callbacks/TrackManiaCallbacks.php @@ -109,8 +109,6 @@ class TrackManiaCallbacks implements CallbackListener { $this->maniaControl->getCallbackManager()->triggerCallback(Callbacks::TM_ONFINISHLINE, $structure); } else if ($structure->getIsEndLap()) { $this->maniaControl->getCallbackManager()->triggerCallback(Callbacks::TM_ONLAPFINISH, $structure); - } else { - $this->maniaControl->getCallbackManager()->triggerCallback(Callbacks::TM_ONWAYPOINT, $structure); } } }