From 11f9cb64d26357c7fab369b15624b1b6f4026a92 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Wed, 26 Mar 2025 20:53:48 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index bfe99b4..a4dd0d7 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -261,16 +261,11 @@ if settings.startup['PHI-CT'].value then local new_pos = gui.get_button_pos(e.element) if e.button == defines.mouse_button_type.left and (not e.control or e.shift) then - local new_positions = {drop = new_pos} - if e.element.sprite == 'virtual-signal/down-arrow' then return end - if e.element.sprite == 'virtual-signal/up-arrow' then - new_positions.pickup = inserter_utils.get_arm_positions(player.opened).drop - end - + local new_positions = {drop = new_pos, pickup = (e.element.sprite == 'virtual-signal/up-arrow' and inserter_utils.get_arm_positions(player.opened).drop) or nil} local old_positions = inserter_utils.get_arm_positions(player.opened) local vec = math2d.position.ensure_xy(new_positions.drop) local new_drop_dir = math.floor(math.atan2(vec.x, -vec.y) * (4 / math.pi) + 0.5) % 8