Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Commit

Permalink
import
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Jun 26, 2020
0 parents commit bb7821b
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/luacheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: luacheck

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: apt
run: sudo apt-get install -y luarocks
- name: luacheck install
run: luarocks install --local luacheck
- name: luacheck run
run: $HOME/.luarocks/bin/luacheck ./
18 changes: 18 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
allow_defined_top = true

globals = {
"monitoring",
"minetest",
"replacer"
}

read_globals = {
-- Stdlib
string = {fields = {"split"}},
table = {fields = {"copy", "getn"}},

-- Minetest
"vector", "ItemStack",
"dump"

}
7 changes: 7 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if not minetest.get_modpath("replacer") then
return
else
print("[monitoring] replacer extension loaded")
end

monitoring.wrap_global({"replacer", "replace"}, "replacer_replace")
3 changes: 3 additions & 0 deletions mod.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name = monitoring_replacer
depends = monitoring
optional_depends = replacer

0 comments on commit bb7821b

Please sign in to comment.