mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Builtin: Add core.MAP_BLOCKSIZE constant
This commit is contained in:
parent
58eb5f39d4
commit
c8b4bedaa8
2 changed files with 6 additions and 1 deletions
|
@ -7,7 +7,7 @@ core.forceload_free_block = nil
|
|||
local blocks_forceloaded
|
||||
local total_forceloaded = 0
|
||||
|
||||
local BLOCKSIZE = 16
|
||||
local BLOCKSIZE = core.MAP_BLOCKSIZE
|
||||
local function get_blockpos(pos)
|
||||
return {
|
||||
x = math.floor(pos.x/BLOCKSIZE),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue