update luacheck and add badge

master
OgelGames 2021-01-05 17:46:44 +11:00
parent d4775afca0
commit 26355f1c88
4 changed files with 5 additions and 11 deletions

View File

@ -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

View File

@ -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",

View File

@ -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.

View File

@ -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()