From 6bd42bce27f0f7dcff08b4442cdc02a5229a9e00 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Mon, 7 Apr 2025 20:59:08 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index 093e4c3..c65a5ae 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -77,6 +77,8 @@ if settings.startup['PHI-CT'].value then local pos_p = (inserter.prototype or inserter.ghost_prototype).inserter_pickup_position local pos_d = (inserter.prototype or inserter.ghost_prototype).inserter_drop_position local range = math.max(math.abs(math.floor(pos_p.x)), math.abs(math.floor(pos_p.y)), math.abs(math.floor(pos_d.x)), math.abs(math.floor(pos_d.y))) + table['table_' .. (3 + (pos_p.x >= 0 and math.max(math.ceil(pos_p.x), 2)) or (pos_p.x < 0 and math.min(math.ceil(pos_p.x), -2))) .. '_' .. (pos_p.y >= 0 and math.max(math.ceil(pos_p.y), 2)) or (pos_p.y < 0 and math.min(math.ceil(pos_p.y), -2))].sprite = 'virtual-signal/up-arrow' + table['table_' .. (3 + (pos_d.x >= 0 and math.max(math.ceil(pos_d.x), 2)) or (pos_d.x < 0 and math.min(math.ceil(pos_d.x), -2))) .. '_' .. (pos_d.y >= 0 and math.max(math.ceil(pos_d.y), 2)) or (pos_d.y < 0 and math.min(math.ceil(pos_d.y), -2))].sprite = 'virtual-signal/down-arrow' end script.on_init(function(_)