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