mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Doc improvment.
This commit is contained in:
parent
18c740712a
commit
55a27fb5f8
2 changed files with 3 additions and 3 deletions
|
@ -6640,8 +6640,8 @@ Environment access
|
|||
* Call Lua function over all loaded or loadable blocks
|
||||
* Takes an table as an argument with the fields:
|
||||
* `mode`
|
||||
* mode = "full": Load and go through every mapblock, clearing objects (default).
|
||||
* mode = "quick": Clear objects immediately in loaded mapblocks, clear objects in unloaded mapblocks only when the mapblocks are next activated.
|
||||
* mode = "full": Load and go through every mapblock.
|
||||
* mode = "quick": Go only through loaded mapblock.
|
||||
* `callback`: Lua callback function function(name, staticdata, params.
|
||||
* `blockpos_hash`: block position hash compatible with `core.hash_node_position` and `core.get_position_from_hash`
|
||||
* `params`: Some Lua value.
|
||||
|
|
|
@ -930,7 +930,7 @@ void ServerEnvironment::blocksCallback(BlocksCallbackConfig &config)
|
|||
float percent = 100.0 * (float)num_blocks_processed /
|
||||
loadable_blocks.size();
|
||||
actionstream << "ServerEnvironment::blocksCallback(): "
|
||||
<< "Processed" << num_blocks_processed << " blocks ("
|
||||
<< "Processed " << num_blocks_processed << " blocks ("
|
||||
<< percent << "%)" << std::endl;
|
||||
}
|
||||
if (num_blocks_processed % unload_interval == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue