Fixed local mode not working in sacrifice rooms

This commit is contained in:
Wofsauge committed 2024-01-13 17:39:47 +01:00
1 parent 4e12773d62
commit da9cf9ddef
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -899,5 +899,5 @@ EID.ItemPoolTypeToMarkup = { [0] = "{{ItemPoolTreasure}}", "{{ItemPoolShop}}", "
-- If a function returns a value, it will be used as the offset -- If a function returns a value, it will be used as the offset
EID.LocalModePositionOffset = { EID.LocalModePositionOffset = {
Default = Vector(0, 20), 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,
} }
+1 -1
View File
@@ -43,7 +43,7 @@ EID:AddCallback(ModCallbacks.MC_HUD_RENDER, EID.OnRender)
local oldPosInitFunc = EID.PositionLocalMode local oldPosInitFunc = EID.PositionLocalMode
function EID:PositionLocalMode(entity) function EID:PositionLocalMode(entity)
oldPosInitFunc(entity) oldPosInitFunc(_, entity)
-- custom description position when describing collectionpage entries -- custom description position when describing collectionpage entries
if not Isaac.IsInGame() and MenuManager:GetActiveMenu() == MainMenuType.COLLECTION then if not Isaac.IsInGame() and MenuManager:GetActiveMenu() == MainMenuType.COLLECTION then
EID.CurrentScaleType = "MainMenu" EID.CurrentScaleType = "MainMenu"