From 229e5f8c5978fd155e3922e316a5448205113c6f Mon Sep 17 00:00:00 2001 From: An-Annoying-Cat <57719091+An-Annoying-Cat@users.noreply.github.com> Date: Sat, 14 Sep 2024 22:19:19 -0500 Subject: [PATCH 1/2] position offset is taken into account --- main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.lua b/main.lua index 67b09f38..8b151a2a 100644 --- a/main.lua +++ b/main.lua @@ -841,7 +841,7 @@ function EID:renderIndicator(entity, playerNum) return end local repDiv = 1 - local entityPos = Isaac.WorldToScreen(entity.Position) + local entityPos = Isaac.WorldToScreen(entity.Position + entity.PositionOffset) local ArrowOffset = Vector(0, -35) if entity.Variant == 100 and not entity:ToPickup():IsShopItem() then ArrowOffset = Vector(0, -62) From 5fed97aec1bd96187858840b966e392651898f0c Mon Sep 17 00:00:00 2001 From: An-Annoying-Cat <57719091+An-Annoying-Cat@users.noreply.github.com> Date: Sun, 15 Sep 2024 22:29:28 -0500 Subject: [PATCH 2/2] fix crane game item being misplaced from the offset update --- main.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/main.lua b/main.lua index 8b151a2a..3478c166 100644 --- a/main.lua +++ b/main.lua @@ -853,8 +853,6 @@ function EID:renderIndicator(entity, playerNum) if EID.isRepentance and not EID:IsGridEntity(entity) then if entity.Variant == 100 and EID:PlayersHaveCollectible(CollectibleType.COLLECTIBLE_FLIP) and EID:getEntityData(entity, "EID_FlipItemID") then entityPos = entityPos + Vector(2.5,2.5) - elseif entity.Type == 6 and entity.Variant == 16 then - entityPos = entityPos + Vector(0,-5) end end local sprite = nil