From d931d2182203eb2914bcdc5f7e2d880f09d7ad18 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Mon, 8 Jan 2024 15:29:38 +0100 Subject: [PATCH] fixed bracket placement --- src/core/GameKeyHandler.ttslua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/GameKeyHandler.ttslua b/src/core/GameKeyHandler.ttslua index 83e719b0..1b2ec83b 100644 --- a/src/core/GameKeyHandler.ttslua +++ b/src/core/GameKeyHandler.ttslua @@ -150,7 +150,7 @@ function removeOneUse(playerColor, hoveredObject) local searchForType = useInfo.type if searchForType then searchForType = searchForType:lower() end - for _, obj in ipairs(searchLib.onObject(hoveredObject), "isTileOrToken") do + for _, obj in ipairs(searchLib.onObject(hoveredObject, "isTileOrToken")) do if not obj.locked and obj.memo ~= "resourceCounter" then -- check for matching object, otherwise use the first hit if obj.memo == searchForType then