mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-31 04:11:39 +09:00
.
This commit is contained in:
@@ -99,8 +99,8 @@ if settings.startup['PHI-CT'].value then
|
|||||||
|
|
||||||
local gui = player.gui.relative.inserter_config
|
local gui = player.gui.relative.inserter_config
|
||||||
local d, ds = math.fmod(inserter_direction_reversed[inserter.direction], 4)
|
local d, ds = math.fmod(inserter_direction_reversed[inserter.direction], 4)
|
||||||
gui['i_direction'].selected_index = (d or 0) + 1
|
gui['i_direction'].selected_index = d or 1
|
||||||
gui['i_sub_direction'].selected_index = (inserter.mirroring and (ds or 0) + 3 % 4) or (ds or 0) + 1
|
gui['i_sub_direction'].selected_index = ((ds or 0) + ((inserter.mirroring and 2) or 0)) % 4 + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
script.on_init(function(_)
|
script.on_init(function(_)
|
||||||
|
|||||||
Reference in New Issue
Block a user