Fixed local mode not working in sacrifice rooms
This commit is contained in:
1 parent
4e12773d62
commit
da9cf9ddef
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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,
|
||||
}
|
||||
+1
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user