From e839827da077ee27b9ce0fc79840b502bf1b0d9b Mon Sep 17 00:00:00 2001 From: Buurazu Date: Fri, 28 Jan 2022 01:01:17 -0500 Subject: [PATCH] fix Afterbirth+ nil index --- eid_api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eid_api.lua b/eid_api.lua index 97ccf1c6..d0fbe402 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -959,7 +959,7 @@ function EID:VoidRoomCheck() if entity.SubType > 0 and not pickup:IsShopItem() and (not REPENTANCE or pickup.OptionsPickupIndex == 0 or EID.VoidOptionIndexes[pickup.OptionsPickupIndex] == nil) then numRunable = numRunable + 1 - EID.VoidOptionIndexes[pickup.OptionsPickupIndex] = entity.SubType + if REPENTANCE then EID.VoidOptionIndexes[pickup.OptionsPickupIndex] = entity.SubType end if (EID.itemConfig:GetCollectible(entity.SubType).Type ~= ItemType.ITEM_ACTIVE) then numVoidable = numVoidable + 1 end end end