From 1cd5e5d995df61c181bf9ba9a76817305058a6e0 Mon Sep 17 00:00:00 2001 From: OgelGames Date: Sun, 17 Sep 2023 00:01:40 +1000 Subject: [PATCH] Update luacheck (#326) --- .github/workflows/luacheck.yml | 13 ++++++------- technic/tools/sonic_screwdriver.lua | 4 ++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml index 5290e245..3c99a991 100644 --- a/.github/workflows/luacheck.yml +++ b/.github/workflows/luacheck.yml @@ -1,11 +1,10 @@ -on: [push, pull_request] name: luacheck +on: [push, pull_request] jobs: - lint: + luacheck: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - name: lint - uses: Roang-zero1/factorio-mod-luacheck@master - with: - luacheckrc_url: "" + - name: Checkout + uses: actions/checkout@master + - name: Luacheck + uses: lunarmodules/luacheck@master diff --git a/technic/tools/sonic_screwdriver.lua b/technic/tools/sonic_screwdriver.lua index a94878ee..1bd5a26e 100644 --- a/technic/tools/sonic_screwdriver.lua +++ b/technic/tools/sonic_screwdriver.lua @@ -29,9 +29,9 @@ local function screwdriver_handler(itemstack, user, pointed_thing, mode) local node = minetest.get_node(pos) local ndef = minetest.registered_nodes[node.name] - if not ndef or not ndef.paramtype2 == "facedir" or + if not ndef or ndef.paramtype2 ~= "facedir" or (ndef.drawtype == "nodebox" and - not ndef.node_box.type == "fixed") or + ndef.node_box.type ~= "fixed") or node.param2 == nil then return end