mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-12 15:54:52 +09:00
selected_index
This commit is contained in:
1 parent
6eaf415107
commit
fb3a789910
1 file changed
+1
-1
@@ -159,7 +159,7 @@ Event.add(defines.events.on_tick, function(_)
|
||||
if switch_index == 1 then
|
||||
local selected_index = current_camera_set.buttons.table[cctv_player.name].selected_index
|
||||
|
||||
if selected_index ~= nil or selected_index ~= 0 then
|
||||
if selected_index > 0 then
|
||||
current_camera_set['cctv_display'].position = game.players[selected_index].position
|
||||
current_camera_set['cctv_display'].surface_index = game.players[selected_index].surface_index
|
||||
|
||||
|
||||
Reference in new issue
Block a user