Potentially fixed some Bag of crafting floor item list related issues
This commit is contained in:
1 parent
16f2cd84a3
commit
c8f383c97c
1 file changed
+3
-3
@@ -565,7 +565,7 @@ function EID:handleBagOfCraftingRendering()
|
|||||||
if EID.Config["DisplayBagOfCrafting"] == "hold" and not string.find(EID.player:GetSprite():GetAnimation(), "PickupWalk") then
|
if EID.Config["DisplayBagOfCrafting"] == "hold" and not string.find(EID.player:GetSprite():GetAnimation(), "PickupWalk") then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
if detectModdedItems() then
|
if detectModdedItems() or Game():GetRoom():GetFrameCount ()<2 then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
local curRoomIndex = Game():GetLevel():GetCurrentRoomIndex()
|
local curRoomIndex = Game():GetLevel():GetCurrentRoomIndex()
|
||||||
@@ -582,11 +582,11 @@ function EID:handleBagOfCraftingRendering()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
EID.bagOfCraftingRoomQueries[curRoomIndex] = roomItems
|
EID.bagOfCraftingRoomQueries[curRoomIndex..""] = roomItems
|
||||||
EID.bagOfCraftingCurPickupCount = #pickups
|
EID.bagOfCraftingCurPickupCount = #pickups
|
||||||
calcFloorItems()
|
calcFloorItems()
|
||||||
else
|
else
|
||||||
roomItems = EID.bagOfCraftingRoomQueries[curRoomIndex] or {}
|
roomItems = EID.bagOfCraftingRoomQueries[curRoomIndex..""] or {}
|
||||||
end
|
end
|
||||||
|
|
||||||
local itemQuery = {}
|
local itemQuery = {}
|
||||||
|
|||||||
Reference in new issue
Block a user