From 84e9e7d861e0069c1ea09c3fda6823b084bfab5d Mon Sep 17 00:00:00 2001
From: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
Date: Sun, 26 Apr 2020 13:29:05 +0200
Subject: [PATCH] fix luacheck errors/warnings

---
 .luacheckrc | 6 ++++--
 init.lua    | 4 ++--
 poi.lua     | 2 +-
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/.luacheckrc b/.luacheckrc
index befcb97..722854b 100644
--- a/.luacheckrc
+++ b/.luacheckrc
@@ -2,7 +2,8 @@ unused_args = false
 allow_defined_top = true
 
 globals = {
-	"mapserver"
+	"mapserver",
+	"moditems"
 }
 
 read_globals = {
@@ -20,5 +21,6 @@ read_globals = {
 	"minecart", locator = { fields = { "beacons" } },
 
 	-- optional mods
-	"xban", "monitoring"
+	"xban", "monitoring",
+	"mcl_core", "mcl_sounds"
 }
diff --git a/init.lua b/init.lua
index 1323cfb..dba7d59 100644
--- a/init.lua
+++ b/init.lua
@@ -1,5 +1,5 @@
-local default_path = core.get_modpath("default") and default
-local mineclone_path = core.get_modpath("mcl_core") and mcl_core
+local default_path = minetest.get_modpath("default") and default
+local mineclone_path = minetest.get_modpath("mcl_core") and mcl_core
 
 moditems = {}
 
diff --git a/poi.lua b/poi.lua
index f55178c..2da0a96 100644
--- a/poi.lua
+++ b/poi.lua
@@ -65,7 +65,7 @@ local register_poi = function(color, dye)
 	})
 
 
-	if mapserver.enable_crafting and (minetest.get_modpath("dye") or core.get_modpath("mcl_core")) then
+	if mapserver.enable_crafting and (minetest.get_modpath("dye") or minetest.get_modpath("mcl_core")) then
 		minetest.register_craft({
 		    output = 'mapserver:poi_' .. color,
 		    recipe = {
-- 
GitLab