Fixed Controller support for Bag content detection

This commit is contained in:
Wofsauge committed 2021-07-03 22:25:42 +02:00
1 parent 3df066bafb
commit 09a6c43028
1 file changed
+1 -1
+1 -1
View File
@@ -460,7 +460,7 @@ end, EntityType.ENTITY_KNIFE)
local holdCounter = 0
local function trackBagHolding()
local isCardHold = Input.IsActionPressed(ButtonAction.ACTION_PILLCARD, 0)
local isCardHold = Input.IsActionPressed(ButtonAction.ACTION_PILLCARD, 0) or Input.IsActionPressed(ButtonAction.ACTION_PILLCARD, 1)
local animationName = EID.player:GetSprite():GetAnimation()
if isCardHold and string.match(animationName, "PickupWalk") and #EID.BagItems>=8 then
holdCounter = holdCounter + 1