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

@@ -230,8 +230,7 @@ local warp_label =
:on_click(function(player, element, _)
local warp_id = element.parent.caption
local warp = Warps.get_warp(warp_id)
local position = warp.position
player.zoom_to_world(position, 1.5)
player.set_controller{ type = defines.controllers.remote, position = warp.position, surface = warp.surface }
end)
:static_name(Gui.unique_static_name)