Skip to content

Commit

Permalink
Mtn v3 - fix linked chests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz committed Nov 19, 2023
1 parent e5f62d4 commit 5a9f6f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 3 additions & 0 deletions maps/mountain_fortress_v3/icw/linked_chests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1251,6 +1251,9 @@ Gui.on_click(
local player = game.get_player(event.player_index)
local player_data = this.linked_gui[player.name]
local ev_element = event.element
if not ev_element or not ev_element.valid or not ev_element.name then
return
end
if not player_data then
Gui.remove_data_recursively(ev_element)
return
Expand Down
7 changes: 1 addition & 6 deletions utils/commands/where.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ local function create_mini_camera_gui(player, target, zoom, render, tooltip)
frame = player.gui.screen.add({type = 'frame', name = locate_player_frame_name, caption = target.name})
end

player.opened = frame

frame.force_auto_center()

local surface = tonumber(target.surface.index)
Expand Down Expand Up @@ -239,10 +237,7 @@ Gui.on_click(
if is_spamming then
return
end
local type = event.gui_type
if type == defines.gui_type.custom then
remove_camera_frame(event.player)
end
remove_camera_frame(event.player)
end
)

Expand Down

0 comments on commit 5a9f6f8

Please sign in to comment.