File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,16 @@ local S = technic.getter
22
33local desc = S (" Administrative World Anchor" )
44
5- local function floor_to_nearest (n , precision )
6- return math.floor (n / precision ) * precision
5+ local function floor_to_nearest (n )
6+ return math.floor (n / core . MAP_BLOCKSIZE )
77end
88
99local function compute_forceload_positions (pos , meta )
1010 local radius = meta :get_int (" radius" )
1111 local minpos = vector .offset (pos , - radius , - radius , - radius )
1212 local maxpos = vector .offset (pos , radius , radius , radius )
13- local minbpos = vector .apply (minpos , floor_to_nearest , 16 )
14- local maxbpos = vector .apply (maxpos , floor_to_nearest , 16 )
13+ local minbpos = vector .apply (minpos , floor_to_nearest )
14+ local maxbpos = vector .apply (maxpos , floor_to_nearest )
1515 local flposes = {}
1616 for x = minbpos .x , maxbpos .x , 16 do
1717 for y = minbpos .y , maxbpos .y , 16 do
You can’t perform that action at this time.
0 commit comments