diff options
author | Jude Melton-Houghton <jwmhjwmh@gmail.com> | 2022-10-22 08:05:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-22 08:05:45 -0400 |
commit | 8f1593e4e8bef498b7021e330e3558545c9543ee (patch) | |
tree | 714f1559f94f09f5a1546c36854b56e1ba62d0ee /doc/lua_api.txt | |
parent | 7e11b8eb721a9039e84ea51ec2e1f58d3c036849 (diff) | |
download | minetest-8f1593e4e8bef498b7021e330e3558545c9543ee.tar.xz |
Add VoxelArea() constructor (#12886)
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 4e3d1230c..fd4e2d3e5 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -4485,7 +4485,8 @@ Methods ----------- A helper class for voxel areas. -It can be created via `VoxelArea:new({MinEdge = pmin, MaxEdge = pmax})`. +It can be created via `VoxelArea(pmin, pmax)` or +`VoxelArea:new({MinEdge = pmin, MaxEdge = pmax})`. The coordinates are *inclusive*, like most other things in Minetest. ### Methods @@ -4533,7 +4534,7 @@ the axes in a voxel area: If, for example: - local area = VoxelArea:new({MinEdge = emin, MaxEdge = emax}) + local area = VoxelArea(emin, emax) The values of `ystride` and `zstride` can be obtained using `area.ystride` and `area.zstride`. |