This commit is contained in:
2024-12-30 16:30:41 +09:00
parent 80cd1245e5
commit 596ea47082
2 changed files with 2 additions and 4 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)