mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
.
This commit is contained in:
@@ -369,14 +369,10 @@ local vlayer_gui_control_see =
|
|||||||
|
|
||||||
if target and vlayer_control_type_list[target] and n > 0 then
|
if target and vlayer_control_type_list[target] and n > 0 then
|
||||||
local i = vlayer.get_interfaces()
|
local i = vlayer.get_interfaces()
|
||||||
|
local entity = i[vlayer_control_type_list[target]][n]
|
||||||
if i and i[vlayer_control_type_list[target]] and i[vlayer_control_type_list[target]][n] then
|
if entity and entity.valid then
|
||||||
local pos = i[vlayer_control_type_list[target]][n].position
|
player.set_controller{ type = defines.controllers.remote, position = entity.position, surface = entity.surface }
|
||||||
|
player.print{ "vlayer.result-interface-location", { "vlayer.control-type-" .. vlayer_control_type_list[target]:gsub("_", "-") }, pos_to_gps_string(entity.position) }
|
||||||
if pos then
|
|
||||||
player.zoom_to_world(pos, 2)
|
|
||||||
player.print{ "vlayer.result-interface-location", { "vlayer.control-type-" .. vlayer_control_type_list[target]:gsub("_", "-") }, pos_to_gps_string(pos) }
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user