summaryrefslogtreecommitdiff
path: root/client/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'client/main.lua')
-rw-r--r--client/main.lua8
1 files 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