core: remove redundant waits

This commit is contained in:
2026-01-07 16:07:36 +02:00
parent 14931ef42d
commit 64c91b344a
3 changed files with 11 additions and 11 deletions

View File

@@ -139,9 +139,9 @@ function PlacementManager:BreakBlock(cx, cy, cz, x, y, z)
print("[DEBUG] Client missing block; resyncing nearby chunks")
ChunkManager:ResyncAroundChunk(cx, cy, cz, 1)
task.defer(function()
task.synchronize()
RunService.RenderStepped:Wait()
task.desynchronize()
-- task.synchronize()
-- RunService.RenderStepped:Wait()
-- task.desynchronize()
local refreshed = ChunkManager:GetChunk(cx, cy, cz)
if refreshed and refreshed:GetBlockAt(x, y, z) then
task.synchronize()
@@ -254,9 +254,9 @@ function PlacementManager:Init()
if not pendingBreakResync[key] then
pendingBreakResync[key] = true
task.defer(function()
task.synchronize()
RunService.RenderStepped:Wait()
task.desynchronize()
-- task.synchronize()
-- RunService.RenderStepped:Wait()
-- task.desynchronize()
pendingBreakResync[key] = nil
ChunkManager:ResyncAroundChunk(cx, cy, cz, 1)
end)