This commit is contained in:
2025-04-07 23:11:39 +09:00
parent e6122eb99e
commit 106b701595

View File

@@ -78,8 +78,8 @@ if settings.startup['PHI-CT'].value then
local pos_d = inserter.inserter_drop_position
pos_p.x, pos_p.y, pos_d.x, pos_d.y = pos_p.x or 0, pos_p.y or 0, pos_d.x or 0, pos_d.y or 0
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)))
gui.table['table_' .. (3 + (pos_p.x >= 0 and math.max(math.floor(pos_p.x), 2)) or (pos_p.x < 0 and math.min(math.floor(pos_p.x), -2))) .. '_' .. (pos_p.y >= 0 and math.max(math.floor(pos_p.y), 2)) or (pos_p.y < 0 and math.min(math.floor(pos_p.y), -2))].sprite = 'virtual-signal/up-arrow'
gui.table['table_' .. (3 + (pos_d.x >= 0 and math.max(math.floor(pos_d.x), 2)) or (pos_d.x < 0 and math.min(math.floor(pos_d.x), -2))) .. '_' .. (pos_d.y >= 0 and math.max(math.floor(pos_d.y), 2)) or (pos_d.y < 0 and math.min(math.floor(pos_d.y), -2))].sprite = 'virtual-signal/down-arrow'
gui.table['table_' .. (3 + math.floor(pos_p.x)) .. '_' .. (3 + math.floor(pos_p.y))].sprite = 'virtual-signal/up-arrow'
gui.table['table_' .. (3 + math.floor(pos_d.x)) .. '_' .. (3 + math.floor(pos_d.y))].sprite = 'virtual-signal/down-arrow'
for x = 1, 5 do
for y = 1, 5 do