From 4866b19e1e330aa8270c2790ef3d660e7a15e240 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Thu, 10 Nov 2022 22:14:40 -0500 Subject: [PATCH] Sanguine Bond update --- main.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/main.lua b/main.lua index e442571e..df28e7dd 100644 --- a/main.lua +++ b/main.lua @@ -742,10 +742,7 @@ if REPENTANCE then EID:AddCallback(ModCallbacks.MC_POST_NEW_ROOM, EID.onNewRoomRep) end --- On new room, save the status of any variables that need to be rewound upon Glowing Hourglass usage -function EID:onNewRoom() - EID.RecentlyTouchedItems = {} - +function EID:CheckCurrentRoomGridEntities() EID.CurrentRoomGridEntities = {} local room = game:GetRoom() for i = 1, room:GetGridSize(), 1 do @@ -755,6 +752,13 @@ function EID:onNewRoom() end end end + +-- On new room, save the status of any variables that need to be rewound upon Glowing Hourglass usage +function EID:onNewRoom() + EID.RecentlyTouchedItems = {} + + EID:CheckCurrentRoomGridEntities() +end EID:AddCallback(ModCallbacks.MC_POST_NEW_ROOM, EID.onNewRoom) --------------------------------------------------------------------------- ---------------------------Handle Rendering--------------------------------