From 4ccf7fb37c55cdf843a6471ab8b116fb3cc90064 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Wed, 26 Mar 2025 03:13:38 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index 4cd7000..26827b1 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -80,8 +80,7 @@ if settings.startup['PHI-CT'].value then return {x = math.floor(pos.x), y = math.floor(pos.y)} end - math2d.direction = math2d.direction or {} - math2d.direction.vectors = {{x = 0, y = -1}, {x = 1, y = -1}, {x = 1, y = 0}, {x = 1, y = 1}, {x = 0, y = 1}, {x = -1, y = 1}, {x = -1, y = 0}, {x = -1, y = -1}} + math2d.direction = {vectors = {{x = 0, y = -1}, {x = 1, y = -1}, {x = 1, y = 0}, {x = 1, y = 1}, {x = 0, y = 1}, {x = -1, y = 1}, {x = -1, y = 0}, {x = -1, y = -1}}} function math2d.direction.from_vector(vec) vec = math2d.position.ensure_xy(vec) @@ -143,7 +142,7 @@ if settings.startup['PHI-CT'].value then table_range = math.max(table_range, inserter_utils.get_max_range(prototype)) end - local table_position = flow_content.add({type = 'table', name = 'table_position', column_count= 1 + table_range * 2}) + local table_position = flow_content.add({type = 'table', name = 'table_position', column_count = 1 + table_range * 2}) table_position.style.horizontal_spacing = 1 table_position.style.vertical_spacing = 1