Potentially fixed some Bag of crafting floor item list related issues
This commit is contained in:
1 parent
16f2cd84a3
commit
c8f383c97c
1 file changed
+4
-4
@@ -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()
|
||||||
@@ -573,7 +573,7 @@ function EID:handleBagOfCraftingRendering()
|
|||||||
local results = {}
|
local results = {}
|
||||||
local roomItems = {}
|
local roomItems = {}
|
||||||
local pickups = Isaac.FindByType(5, -1, -1, true, false)
|
local pickups = Isaac.FindByType(5, -1, -1, true, false)
|
||||||
if EID.bagOfCraftingCurPickupCount ~= #pickups then
|
if EID.bagOfCraftingCurPickupCount ~= #pickups then
|
||||||
for i, entity in ipairs(pickups) do
|
for i, entity in ipairs(pickups) do
|
||||||
local craftingIDs = EID:getBagOfCraftingID(entity.Variant, entity.SubType)
|
local craftingIDs = EID:getBagOfCraftingID(entity.Variant, entity.SubType)
|
||||||
if craftingIDs ~= nil and not entity:ToPickup():IsShopItem() then
|
if craftingIDs ~= nil and not entity:ToPickup():IsShopItem() then
|
||||||
@@ -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