Remove Zoom to World (#339)

* Update player-list.lua

* Update warp-list.lua

* Fix remaining cases of zoom_to_world

* Fix lint

---------

Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>
This commit is contained in:
2024-12-31 04:30:17 +09:00
committed by GitHub
parent 25df6c91b6
commit d12b50b4ed
4 changed files with 7 additions and 12 deletions

View File

@@ -127,7 +127,7 @@ local silo_cords =
:on_click(function(player, element, _)
local rocket_silo_name = element.parent.caption
local rocket_silo = Rockets.get_silo_entity(rocket_silo_name)
player.zoom_to_world(rocket_silo.position, 2)
player.set_controller{ type = defines.controllers.remote, position = rocket_silo.position, surface = rocket_silo.surface }
end)
--- Base element for each rocket in the progress list