From da9cf9ddef29618c8d8928431f5951392e601603 Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Sat, 13 Jan 2024 17:39:47 +0100 Subject: [PATCH] Fixed local mode not working in sacrifice rooms --- eid_data.lua | 2 +- eid_repentogon.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eid_data.lua b/eid_data.lua index 4524dd0d..a0b30bb9 100644 --- a/eid_data.lua +++ b/eid_data.lua @@ -899,5 +899,5 @@ EID.ItemPoolTypeToMarkup = { [0] = "{{ItemPoolTreasure}}", "{{ItemPoolShop}}", " -- If a function returns a value, it will be used as the offset EID.LocalModePositionOffset = { Default = Vector(0, 20), - Shop = function(entity) if entity:ToPickup() and entity:ToPickup():IsShopItem() then return Vector(0, 35) end end, + Shop = function(entity) if entity and not EID:IsGridEntity(entity) and entity:ToPickup() and entity:ToPickup():IsShopItem() then return Vector(0, 35) end end, } diff --git a/eid_repentogon.lua b/eid_repentogon.lua index 06367191..871917bf 100644 --- a/eid_repentogon.lua +++ b/eid_repentogon.lua @@ -43,7 +43,7 @@ EID:AddCallback(ModCallbacks.MC_HUD_RENDER, EID.OnRender) local oldPosInitFunc = EID.PositionLocalMode function EID:PositionLocalMode(entity) - oldPosInitFunc(entity) + oldPosInitFunc(_, entity) -- custom description position when describing collectionpage entries if not Isaac.IsInGame() and MenuManager:GetActiveMenu() == MainMenuType.COLLECTION then EID.CurrentScaleType = "MainMenu"