Skip to content

Commit

Permalink
fix luacheck warnings and add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wsor4035 committed Mar 17, 2024
1 parent e9f8cff commit bf59e6f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/luacheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: luacheck
on: [push, pull_request]
jobs:
luacheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Luacheck
uses: lunarmodules/luacheck@master
24 changes: 13 additions & 11 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,6 @@ minetest.register_node("swaz:iris", {
end
local height = 1
local pos_top = {x = pos.x, y = pos.y + 1, z = pos.z}
local node_top = minetest.get_node(pos_top)
local def_top = minetest.registered_nodes[node_top.name]
local player_name = placer:get_player_name()


Expand Down Expand Up @@ -524,14 +522,17 @@ if mg_name ~= "v6" and mg_name ~= "singlenode" then
schematic = {
size = {x = 4, y = 2, z = 4},
data = {
{name = "swaz:silt"}, {name = "swaz:silt"}, {name = "swaz:silt"},{name = "swaz:silt"},
{name = "swaz:silt_with_grass"}, {name = "swaz:silt_with_grass"}, {name = "swaz:silt_with_grass"},{name = "swaz:silt_with_grass"},
{name = "swaz:silt"}, {name = "swaz:silt"}, {name = "swaz:silt"},{name = "swaz:silt"},
{name = "swaz:silt_with_grass"}, {name = "swaz:water_source"}, {name = "swaz:water_source"},{name = "swaz:silt_with_grass"},
{name = "swaz:silt"}, {name = "swaz:silt"}, {name = "swaz:silt"},{name = "swaz:silt"},
{name = "swaz:silt_with_grass"}, {name = "swaz:water_source"}, {name = "swaz:water_source"},{name = "swaz:silt_with_grass"},
{name = "swaz:silt"}, {name = "swaz:silt"}, {name = "swaz:silt"},{name = "swaz:silt"},
{name = "swaz:silt_with_grass"}, {name = "swaz:silt_with_grass"}, {name = "swaz:silt_with_grass"},{name = "swaz:silt_with_grass"},
{name = "swaz:silt"},{name = "swaz:silt"},{name = "swaz:silt"},
{name = "swaz:silt"},{name = "swaz:silt_with_grass"},{name = "swaz:silt_with_grass"},
{name = "swaz:silt_with_grass"},{name = "swaz:silt_with_grass"},{name = "swaz:silt"},
{name = "swaz:silt"},{name = "swaz:silt"},{name = "swaz:silt"},
{name = "swaz:silt_with_grass"},{name = "swaz:water_source"},{name = "swaz:water_source"},
{name = "swaz:silt_with_grass"},{name = "swaz:silt"},{name = "swaz:silt"},
{name = "swaz:silt"},{name = "swaz:silt"},{name = "swaz:silt_with_grass"},
{name = "swaz:water_source"},{name = "swaz:water_source"},{name = "swaz:silt_with_grass"},
{name = "swaz:silt"},{name = "swaz:silt"},{name = "swaz:silt"},
{name = "swaz:silt"},{name = "swaz:silt_with_grass"},{name = "swaz:silt_with_grass"},
{name = "swaz:silt_with_grass"},{name = "swaz:silt_with_grass"},
}
},
spawn_by = "swaz:silt_with_grass",
Expand Down Expand Up @@ -760,7 +761,8 @@ if mg_name ~= "v6" and mg_name ~= "singlenode" then
schematic = {
size = {x = 1, y = 4, z = 1},
data = {
{name = "swaz:reed", force_place = true}, {name = "swaz:reed", force_place = true}, {name = "swaz:reed"}, {name = "swaz:reed"}
{name = "swaz:reed", force_place = true},{name = "swaz:reed", force_place = true},
{name = "swaz:reed"},{name = "swaz:reed"}
}
},
spawn_by = "swaz:water_source",
Expand Down

0 comments on commit bf59e6f

Please sign in to comment.