Add GitHub workflow and luacheck (#545)

Add badge to README
Fix luacheck warnings
Remove node_ownership globals (and support)
This commit is contained in:
David Leal
2020-06-12 13:39:00 -05:00
committed by GitHub
parent befe3ecc86
commit a8daa417c4
31 changed files with 115 additions and 80 deletions

View File

@ -99,7 +99,7 @@ minetest.register_globalstep(function(dtime)
if node and node.name == "air" then
minetest.set_node(rounded_pos, {name="technic:light"})
end
local node = minetest.get_node_or_nil(old_pos)
node = minetest.get_node_or_nil(old_pos)
if node and node.name == "technic:light" then
minetest.remove_node(old_pos)
end
@ -118,6 +118,6 @@ minetest.register_node("technic:light", {
walkable = false,
buildable_to = true,
sunlight_propagates = true,
light_source = LIGHT_MAX,
light_source = minetest.LIGHT_MAX,
pointable = false,
})