diff --git a/.github/workflows/dev-deploy.yml b/.github/workflows/dev-deploy.yml index 418d1360..d1773da3 100644 --- a/.github/workflows/dev-deploy.yml +++ b/.github/workflows/dev-deploy.yml @@ -18,10 +18,10 @@ jobs: fetch-depth: 0 - name: Install Lua - uses: leafo/gh-actions-lua@v5 + uses: leafo/gh-actions-lua@v8.0.0 - name: Install LuaRocks - uses: leafo/gh-actions-luarocks@v2 + uses: leafo/gh-actions-luarocks@v4 - name: Install LDoc run: luarocks install ldoc 1.4.4-1 diff --git a/.github/workflows/pr-checker.yml b/.github/workflows/pr-checker.yml index 77e50408..aaf4242a 100644 --- a/.github/workflows/pr-checker.yml +++ b/.github/workflows/pr-checker.yml @@ -28,10 +28,10 @@ jobs: fetch-depth: 0 - name: Install Lua - uses: leafo/gh-actions-lua@v5 + uses: leafo/gh-actions-lua@v8.0.0 - name: Install LuaRocks - uses: leafo/gh-actions-luarocks@v2 + uses: leafo/gh-actions-luarocks@v4 - name: Install LDoc run: luarocks install ldoc 1.4.4-1 diff --git a/modules/gui/warp-list.lua b/modules/gui/warp-list.lua index 03a18308..833b29f1 100644 --- a/modules/gui/warp-list.lua +++ b/modules/gui/warp-list.lua @@ -94,8 +94,7 @@ Gui.element{ local water_tiles = surface.find_tiles_filtered{ collision_mask = "water-tile", radius = config.standard_proximity_radius + 1, position = position } if #water_tiles > 0 then player_return({'expcore-commands.command-fail', {'warp-list.too-close-to-water', config.standard_proximity_radius + 1}}, 'orange_red', player) - local play_sound = 'utility/wire_pickup' - if game.player then game.player.play_sound{path=play_sound} end + if game.player then game.player.play_sound{ path = 'utility/wire_pickup' } end for _, tile in pairs(water_tiles) do rendering.draw_sprite{ sprite = 'utility/rail_path_not_possible', @@ -867,4 +866,4 @@ local function maintain_tag(event) end Event.add(defines.events.on_chart_tag_modified, maintain_tag) -Event.add(defines.events.on_chart_tag_removed, maintain_tag) \ No newline at end of file +Event.add(defines.events.on_chart_tag_removed, maintain_tag)