Skip to content

Commit

Permalink
reduce delay-time between async operations
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed May 7, 2024
1 parent 934f548 commit c74a0f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion create_catalog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function mapblock_lib.create_catalog(filename, pos1, pos2, options)

-- default to async serialization
options = options or {}
options.delay = options.delay or 0.2
options.delay = options.delay or 0.1
options.callback = options.callback or function() end
options.progress_callback = options.progress_callback or function() end

Expand Down
2 changes: 1 addition & 1 deletion get_catalog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function Catalog:deserialize_all(target_mapblock_pos, options)
local count = 0

options = options or {}
options.delay = options.delay or 0.2
options.delay = options.delay or 0.1
options.rotate_y = options.rotate_y or 0
options.callback = options.callback or function() end
options.progress_callback = options.progress_callback or function() end
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ local mb_pos1 = { x=0, y=0, z=0 }
local mb_pos2 = { x=1, y=1, z=1 }
local options = {
-- optional: delay between operations
delay = 0.2,
delay = 0.1,
-- optional: called when done
callback = function()
print("done!")
Expand Down

0 comments on commit c74a0f6

Please sign in to comment.