tangled
alpha
login
or
join now
kris.darkworld.download
/
block-game
0
fork
atom
Minecraft-like Roblox block game
rblx.games/135624152691584
roblox
roblox-game
rojo
0
fork
atom
overview
issues
pulls
pipelines
Revert "core: remove redundant waits"
kris.darkworld.download
2 months ago
4a512cee
85516558
+7
-7
2 changed files
expand all
collapse all
unified
split
src
ReplicatedStorage
Shared
ChunkManager
ChunkBuilder.lua
PlacementManager.lua
+1
-1
src/ReplicatedStorage/Shared/ChunkManager/ChunkBuilder.lua
···
117
117
if existing then
118
118
task.defer(function()
119
119
task.synchronize()
120
120
-
-- RunService.RenderStepped:Wait()
120
120
+
RunService.RenderStepped:Wait()
121
121
if existing.Parent then
122
122
existing:Destroy()
123
123
end
+6
-6
src/ReplicatedStorage/Shared/PlacementManager.lua
···
139
139
print("[DEBUG] Client missing block; resyncing nearby chunks")
140
140
ChunkManager:ResyncAroundChunk(cx, cy, cz, 1)
141
141
task.defer(function()
142
142
-
-- task.synchronize()
143
143
-
-- RunService.RenderStepped:Wait()
144
144
-
-- task.desynchronize()
142
142
+
task.synchronize()
143
143
+
RunService.RenderStepped:Wait()
144
144
+
task.desynchronize()
145
145
local refreshed = ChunkManager:GetChunk(cx, cy, cz)
146
146
if refreshed and refreshed:GetBlockAt(x, y, z) then
147
147
task.synchronize()
···
254
254
if not pendingBreakResync[key] then
255
255
pendingBreakResync[key] = true
256
256
task.defer(function()
257
257
-
-- task.synchronize()
258
258
-
-- RunService.RenderStepped:Wait()
259
259
-
-- task.desynchronize()
257
257
+
task.synchronize()
258
258
+
RunService.RenderStepped:Wait()
259
259
+
task.desynchronize()
260
260
pendingBreakResync[key] = nil
261
261
ChunkManager:ResyncAroundChunk(cx, cy, cz, 1)
262
262
end)