From 820335d1e930e354f300610b653907ed6f70150a Mon Sep 17 00:00:00 2001
From: ubq323 <ubq323@ubq323.website>
Date: Mon, 6 Feb 2023 12:26:15 +0000
Subject: actually removing chunks inside of iter_chunks in fine

---
 client/main.lua | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/client/main.lua b/client/main.lua
index 63c2fc7..d6f9e60 100644
--- a/client/main.lua
+++ b/client/main.lua
@@ -123,14 +123,10 @@ function love.update(dt)
 		for cp in map:iter_chunks() do
 			local d = player_cp:orth_dist(cp)
 			if d > 1 then
-				table.insert(to_remove,cp)
+				map:remove_chunk(cp)
 			end
 		end
-		for _,cp in ipairs(to_remove) do
-			map:remove_chunk(cp)
-		end
-
-		
+	
 	end
 	
 
-- 
cgit v1.2.3