added updated check

This commit is contained in:
dscarpac 2024-07-03 02:26:10 -05:00
parent 8b0dec5fac
commit 6ecdd6d7fd

View File

@ -44,10 +44,13 @@ function addTokenToBag(_, _, tokenType)
end
function removeAndExtraAction()
if not updated then return end
blessCurseManagerApi.removeToken("Bless")
blessCurseManagerApi.removeToken("Bless")
blessCurseManagerApi.removeToken("Curse")
blessCurseManagerApi.removeToken("Curse")
updated = false
Wait.frames(maybeUpdateButtonState, 2)
local position = self.getPosition()
local matColor = playermatApi.getMatColorByPosition(position)