From a3a01d04fed40262a2c3984e25cd36352cdb72cb Mon Sep 17 00:00:00 2001
From: Aneesh Dogra <lionaneesh@users.noreply.github.com>
Date: Mon, 2 Dec 2024 17:25:33 +0100
Subject: [PATCH] Update Looting to not use Mouse if KeyboardOnly is set

---
 Core/Goals/LootGoal.cs | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Core/Goals/LootGoal.cs b/Core/Goals/LootGoal.cs
index c987fb95..b6f4523d 100644
--- a/Core/Goals/LootGoal.cs
+++ b/Core/Goals/LootGoal.cs
@@ -147,8 +147,10 @@ private bool TryLoot()
                 return true;
             }
         }
-
-        return LootMouse();
+        if (!input.KeyboardOnly) {
+            return LootMouse();
+        }
+        return false;
     }
 
     private void HandleSuccessfulLoot()
@@ -452,4 +454,4 @@ private void LogWarning(string text)
     static partial void LogKeyboardLootFailed(ILogger logger, bool hasTarget);
 
     #endregion
-}
\ No newline at end of file
+}