update luacheck and add badge
parent
d4775afca0
commit
26355f1c88
|
@ -1,14 +1,10 @@
|
||||||
name: luacheck
|
name: luacheck
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@master
|
||||||
- name: apt
|
- name: apt
|
||||||
run: sudo apt-get install -y luarocks
|
run: sudo apt-get install -y luarocks
|
||||||
- name: luacheck install
|
- name: luacheck install
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
unused_args = false
|
unused_args = false
|
||||||
allow_defined_top = true
|
|
||||||
|
|
||||||
globals = {
|
globals = {
|
||||||
"telemosaic"
|
"telemosaic"
|
||||||
|
@ -8,12 +7,10 @@ globals = {
|
||||||
read_globals = {
|
read_globals = {
|
||||||
-- Stdlib
|
-- Stdlib
|
||||||
string = {fields = {"split"}},
|
string = {fields = {"split"}},
|
||||||
table = {fields = {"copy", "getn"}},
|
|
||||||
|
|
||||||
-- Minetest
|
-- Minetest
|
||||||
"minetest",
|
"minetest",
|
||||||
"vector", "ItemStack",
|
"vector", "ItemStack",
|
||||||
"dump",
|
|
||||||
|
|
||||||
-- Deps
|
-- Deps
|
||||||
"default",
|
"default",
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
Telemosaic [telemosaic]
|
# Telemosaic [telemosaic]
|
||||||
=======================
|
|
||||||
|
[![luacheck](https://github.com/mt-mods/telemosaic/workflows/luacheck/badge.svg)](https://github.com/mt-mods/telemosaic/actions)
|
||||||
|
|
||||||
A Minetest mod for user-generated teleportation pads.
|
A Minetest mod for user-generated teleportation pads.
|
||||||
|
|
||||||
|
|
|
@ -217,7 +217,7 @@ local telemosaic_digiline_switching = {
|
||||||
}
|
}
|
||||||
|
|
||||||
-- teleports the player with given telemosaic pos
|
-- teleports the player with given telemosaic pos
|
||||||
function do_teleport(pos, player)
|
local function do_teleport(pos, player)
|
||||||
|
|
||||||
-- prevent teleport spamming
|
-- prevent teleport spamming
|
||||||
local player_name = player:get_player_name()
|
local player_name = player:get_player_name()
|
||||||
|
|
Loading…
Reference in New Issue