finish final preperation stage
This commit is contained in:
parent
cce3c97278
commit
3dc2e52cde
@ -137,6 +137,15 @@ local function timer_trigger(pos, elapsed)
|
||||
strut_line_y(pos.x, pos.y, pos.z, marker_pos.y)
|
||||
elseif framenum == 0 then
|
||||
--shrink the operational area here to a 2d space with one piece of border taken away to drill there
|
||||
posx, pos2x = order(pos.x, marker_pos.x)
|
||||
posy, pos2y = order(pos.y, marker_pos.y)
|
||||
posz, pos2z = order(pos.z, marker_pos.z)
|
||||
posx = posx +1
|
||||
pos2x = pos2x -1
|
||||
posy = posy + 1
|
||||
pos2y = pos2y -1
|
||||
meta:set_string("dig_area_start", { x= posx, y= posy, z= posz})
|
||||
meta:set_string("dig_area_end", { x= pos2x, y= pos2y, z= posz}) -- can use this last z as counter, or ignore it
|
||||
end
|
||||
minetest.debug(framenum)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user