1
0
Fork 0
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:
Tim 2016-07-23 13:29:53 +02:00 committed by paramat
parent 58eb5f39d4
commit c8b4bedaa8
2 changed files with 6 additions and 1 deletions

View file

@ -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),