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