Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz committed Jan 17, 2025
1 parent 5a961cb commit b475dc4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion maps/mountain_fortress_v3/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2371,7 +2371,7 @@ local function on_marked_for_deconstruction(event)

if player.controller_type == defines.controllers.remote then
entity.cancel_deconstruction(player.force, player)
player.print("You cannot deconstruct while in remove view!", { r = 1, g = 0.5, b = 0.5 })
player.print("You cannot deconstruct while in remote view!", { r = 1, g = 0.5, b = 0.5 })
end
end

Expand Down
7 changes: 7 additions & 0 deletions maps/mountain_fortress_v3/gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ local function on_gui_click(event)
end
if get_top_frame(player) then
local info = get_top_frame(player)
local info_button = get_top_frame_custom(player, main_button_name)
local wd = get_top_frame_custom(player, 'wave_defense')
local diff = get_top_frame_custom(player, Difficulty.top_button_name)

Expand All @@ -502,6 +503,9 @@ local function on_gui_click(event)
diff.visible = false
end
info.visible = false
if info_button then
info_button.sprite = 'utility/expand'
end
return
elseif wd and not wd.visible then
for _, child in pairs(player.gui.left.children) do
Expand All @@ -525,6 +529,9 @@ local function on_gui_click(event)
diff.visible = true
end
info.visible = true
if info_button then
info_button.sprite = 'utility/collapse'
end
return
end
else
Expand Down
15 changes: 2 additions & 13 deletions utils/server_commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,9 @@ function is_game_modded()
return false
end

local space_age_mods = {
['space-age'] = true,
['elevated-rails'] = true,
['quality'] = true,

}

function has_space_age()
local active_mods = script.active_mods
for mod_name, _ in pairs(active_mods) do
if space_age_mods[mod_name] then
return true
end
end
local active_mods = script.active_mods['space-age'] ~= nil
if active_mods then return true end
return false
end

Expand Down

0 comments on commit b475dc4

Please sign in to comment.