File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44-- Constants values for use with the Lua API
55--
66
7+ -- mapnode.h
78-- Built-in Content IDs (for use with VoxelManip API)
89core .CONTENT_UNKNOWN = 125
910core .CONTENT_AIR = 126
1011core .CONTENT_IGNORE = 127
1112
13+ -- emerge.h
1214-- Block emerge status constants (for use with core.emerge_area)
1315core .EMERGE_CANCELLED = 0
1416core .EMERGE_ERRORED = 1
1517core .EMERGE_FROM_MEMORY = 2
1618core .EMERGE_FROM_DISK = 3
1719core .EMERGE_GENERATED = 4
20+
21+ -- constants.h
22+ core .MAP_BLOCKSIZE = 16
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ core.forceload_free_block = nil
77local blocks_forceloaded
88local total_forceloaded = 0
99
10- local BLOCKSIZE = 16
10+ local BLOCKSIZE = core . MAP_BLOCKSIZE
1111local function get_blockpos (pos )
1212 return {
1313 x = math.floor (pos .x / BLOCKSIZE ),
You can’t perform that action at this time.
0 commit comments