Revert "core: remove redundant waits"
This commit is contained in:
@@ -117,7 +117,7 @@ function ChunkBuilder:BuildChunk(c: typeof(Chunk.new(0,0,0)),parent: Instance?)
|
|||||||
if existing then
|
if existing then
|
||||||
task.defer(function()
|
task.defer(function()
|
||||||
task.synchronize()
|
task.synchronize()
|
||||||
-- RunService.RenderStepped:Wait()
|
RunService.RenderStepped:Wait()
|
||||||
if existing.Parent then
|
if existing.Parent then
|
||||||
existing:Destroy()
|
existing:Destroy()
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -139,9 +139,9 @@ function PlacementManager:BreakBlock(cx, cy, cz, x, y, z)
|
|||||||
print("[DEBUG] Client missing block; resyncing nearby chunks")
|
print("[DEBUG] Client missing block; resyncing nearby chunks")
|
||||||
ChunkManager:ResyncAroundChunk(cx, cy, cz, 1)
|
ChunkManager:ResyncAroundChunk(cx, cy, cz, 1)
|
||||||
task.defer(function()
|
task.defer(function()
|
||||||
-- task.synchronize()
|
task.synchronize()
|
||||||
-- RunService.RenderStepped:Wait()
|
RunService.RenderStepped:Wait()
|
||||||
-- task.desynchronize()
|
task.desynchronize()
|
||||||
local refreshed = ChunkManager:GetChunk(cx, cy, cz)
|
local refreshed = ChunkManager:GetChunk(cx, cy, cz)
|
||||||
if refreshed and refreshed:GetBlockAt(x, y, z) then
|
if refreshed and refreshed:GetBlockAt(x, y, z) then
|
||||||
task.synchronize()
|
task.synchronize()
|
||||||
@@ -254,9 +254,9 @@ function PlacementManager:Init()
|
|||||||
if not pendingBreakResync[key] then
|
if not pendingBreakResync[key] then
|
||||||
pendingBreakResync[key] = true
|
pendingBreakResync[key] = true
|
||||||
task.defer(function()
|
task.defer(function()
|
||||||
-- task.synchronize()
|
task.synchronize()
|
||||||
-- RunService.RenderStepped:Wait()
|
RunService.RenderStepped:Wait()
|
||||||
-- task.desynchronize()
|
task.desynchronize()
|
||||||
pendingBreakResync[key] = nil
|
pendingBreakResync[key] = nil
|
||||||
ChunkManager:ResyncAroundChunk(cx, cy, cz, 1)
|
ChunkManager:ResyncAroundChunk(cx, cy, cz, 1)
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user