mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(grid): clear cached entries on change
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user