From 5a18b7e2d5e8e8f1dcf7d19cb3f5deeac50a098a Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Mon, 10 Mar 2025 16:28:23 +1100 Subject: [PATCH] fix(grid): clear cached entries on change --- imports/grid/shared.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/imports/grid/shared.lua b/imports/grid/shared.lua index 8300ee6..8a8f5ce 100644 --- a/imports/grid/shared.lua +++ b/imports/grid/shared.lua @@ -144,6 +144,8 @@ function lib.grid.addEntry(entry) end grid[y] = row + + table.wipe(lastNearbyEntries) end end @@ -182,6 +184,8 @@ function lib.grid.removeEntry(entry) ::continue:: end + table.wipe(lastNearbyEntries) + return success end