From c8b4bedaa89ac5246161b1bb9e3826dcce083fcf Mon Sep 17 00:00:00 2001 From: Tim Date: Sat, 23 Jul 2016 13:29:53 +0200 Subject: Builtin: Add core.MAP_BLOCKSIZE constant --- builtin/game/forceloading.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin/game/forceloading.lua') diff --git a/builtin/game/forceloading.lua b/builtin/game/forceloading.lua index 8c9fbf512..468572e6e 100644 --- a/builtin/game/forceloading.lua +++ b/builtin/game/forceloading.lua @@ -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), -- cgit v1.2.3