Fixed some situations where the bag of crafting content isnt tracked correctly

This commit is contained in:
Wofsauge committed 2021-06-13 22:49:04 +02:00
1 parent 896141c5e2
commit fe7891aa74
2 files changed
+26 -8

No files matched your search

+4 -6
View File
@@ -484,12 +484,10 @@ local function onRender(t)
else
EID:removeTextPosModifier("Tained HUD")
end
if EID.player:HasCollectible(710) and EID.Config["DisplayBagOfCrafting"] ~= "never" then
if EID.Config["DisplayBagOfCrafting"] == "always" or (EID.Config["DisplayBagOfCrafting"] == "hold" and string.find(EID.player:GetSprite():GetAnimation(), "PickupWalk")) then
local success = EID:handleBagOfCraftingRendering()
if success then
return
end
if EID.player:HasCollectible(710) then
local success = EID:handleBagOfCraftingRendering()
if success then
return
end
end
end