mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2024-09-27 15:10:17 +02:00
Use Luarocks to install luacheck
Also remove worthless variable.
This commit is contained in:
parent
08879e9c28
commit
3fa2b680a4
14
.github/workflows/check-release.yml
vendored
14
.github/workflows/check-release.yml
vendored
|
@ -1,11 +1,15 @@
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
name: Check & Release
|
name: Check & Release
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v1
|
||||||
- name: lint
|
- name: apt
|
||||||
uses: Roang-zero1/factorio-mod-luacheck@master
|
run: sudo apt-get install -y luarocks
|
||||||
with:
|
- name: luacheck install
|
||||||
luacheckrc_url: https://raw.githubusercontent.com/Uberi/Minetest-WorldEdit/master/.luacheckrc
|
run: luarocks install --local luacheck
|
||||||
|
- name: luacheck run
|
||||||
|
run: $HOME/.luarocks/bin/luacheck ./
|
||||||
|
|
|
@ -12,10 +12,6 @@ ignore = {
|
||||||
"file", "name",
|
"file", "name",
|
||||||
}
|
}
|
||||||
|
|
||||||
globals = {
|
|
||||||
"minetest"
|
|
||||||
}
|
|
||||||
|
|
||||||
read_globals = {
|
read_globals = {
|
||||||
string = {fields = {"split", "trim"}},
|
string = {fields = {"split", "trim"}},
|
||||||
table = {fields = {"copy", "getn"}},
|
table = {fields = {"copy", "getn"}},
|
||||||
|
@ -24,5 +20,5 @@ read_globals = {
|
||||||
"smart_inventory", "sfinv",
|
"smart_inventory", "sfinv",
|
||||||
|
|
||||||
"VoxelArea", "inventory_plus",
|
"VoxelArea", "inventory_plus",
|
||||||
"ItemStack",
|
"ItemStack", "minetest",
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,7 +88,6 @@ if minetest.global_exists("unified_inventory") then -- unified inventory install
|
||||||
worldedit.show_page(name, "worldedit_gui")
|
worldedit.show_page(name, "worldedit_gui")
|
||||||
return true
|
return true
|
||||||
elseif fields.worldedit_gui_exit then --return to original page
|
elseif fields.worldedit_gui_exit then --return to original page
|
||||||
player = minetest.get_player_by_name(name)
|
|
||||||
if player then
|
if player then
|
||||||
unified_inventory.set_inventory_formspec(player, "craft")
|
unified_inventory.set_inventory_formspec(player, "craft")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user