Skip to content

Commit

Permalink
Merge branch 'patch/6.0.10'
Browse files Browse the repository at this point in the history
  • Loading branch information
Cooldude2606 committed Jun 16, 2020
2 parents e27502c + f1520e7 commit cb20d77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion config/expcore/permission_groups.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ Permission_Groups.new_group('Guest')
'use_artillery_remote',
'launch_rocket',
'cancel_research',
'activate_cut'
'activate_cut',
'flush_opened_entity_fluid',
'flush_opened_entity_specific_fluid'
}

Permission_Groups.new_group('Restricted')
Expand Down
3 changes: 2 additions & 1 deletion modules/gui/warp-list.lua
Original file line number Diff line number Diff line change
Expand Up @@ -620,12 +620,13 @@ Event.on_nth_tick(math.floor(60/config.update_smoothing),function()
-- Change the enabled state of the add warp button
local frame = Gui.get_left_element(player,warp_list_container)
local add_warp_element = frame.container.header.alignment[add_new_warp.name]
local old_closest_warp_name = add_warp_element.tooltip[2] or closest_warp.name
local was_able_to_make_warp = add_warp_element.enabled
local can_make_warp = closest_distance > mr2
if can_make_warp and not was_able_to_make_warp then
add_warp_element.enabled = true
add_warp_element.tooltip = {'warp-list.add-tooltip'}
elseif not can_make_warp and was_able_to_make_warp then
elseif not can_make_warp and was_able_to_make_warp or old_closest_warp_name ~= closest_warp.name then
add_warp_element.enabled = false
add_warp_element.tooltip = {'warp-list.too-close',closest_warp.name}
end
Expand Down

0 comments on commit cb20d77

Please sign in to comment.