From d8267bd07cf9939ba9dd7094b34ff5334018ef0a Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Thu, 17 Apr 2025 19:39:02 +0900 Subject: [PATCH] . --- PHI-CL/changelog.txt | 7 +++++++ PHI-CL/control.lua | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/PHI-CL/changelog.txt b/PHI-CL/changelog.txt index 29c5014..a1aeb27 100644 --- a/PHI-CL/changelog.txt +++ b/PHI-CL/changelog.txt @@ -1,3 +1,10 @@ +--------------------------------------------------------------------------------------------------- +Version: 3.0.93 +Date: 2025-04-19 + + Changes: + - [VP] Fixed an issue of incorrect inserter direction displayed. + --------------------------------------------------------------------------------------------------- Version: 3.0.92 Date: 2025-04-19 diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index 406c877..02a474d 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -104,7 +104,7 @@ if settings.startup['PHI-CT'].value or settings.startup['PHI-MI'].value or (sett end local gui = player.gui.relative.inserter_config - gui['i_sub_direction'].selected_index = ((inserter_direction_reversed[inserter.direction] % 4 or 0) + ((inserter.mirroring and 2) or 0)) % 4 + 1 + gui['i_sub_direction'].selected_index = (((inserter_direction_reversed[inserter.direction] - 1) % 4 or 0) + ((inserter.mirroring and 2) or 0)) % 4 + 1 end script.on_nth_tick(3600, function(_)