mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-26 12:54:45 +00:00
fix(grid): clear cached entries on change
This commit is contained in:
1 file changed
+4
@@ -144,6 +144,8 @@ function lib.grid.addEntry(entry)
|
|||||||
end
|
end
|
||||||
|
|
||||||
grid[y] = row
|
grid[y] = row
|
||||||
|
|
||||||
|
table.wipe(lastNearbyEntries)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -182,6 +184,8 @@ function lib.grid.removeEntry(entry)
|
|||||||
::continue::
|
::continue::
|
||||||
end
|
end
|
||||||
|
|
||||||
|
table.wipe(lastNearbyEntries)
|
||||||
|
|
||||||
return success
|
return success
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user