From a0bc59c6939e8aa6c5493a3933814871b4d5793e Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Thu, 2 May 2019 11:14:27 +0200 Subject: [PATCH] luacheck / jshint --- mapserver_mod/mapserver/.luacheckrc | 1 + mapserver_mod/mapserver/init.lua | 4 ++-- server/static/js/overlays/PoiOverlay.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mapserver_mod/mapserver/.luacheckrc b/mapserver_mod/mapserver/.luacheckrc index 067d007..19510d6 100644 --- a/mapserver_mod/mapserver/.luacheckrc +++ b/mapserver_mod/mapserver/.luacheckrc @@ -17,6 +17,7 @@ read_globals = { -- Deps "unified_inventory", "default", "advtrains", + "minecart", -- optional mods "xban" diff --git a/mapserver_mod/mapserver/init.lua b/mapserver_mod/mapserver/init.lua index 07863a8..c5da6aa 100644 --- a/mapserver_mod/mapserver/init.lua +++ b/mapserver_mod/mapserver/init.lua @@ -1,6 +1,6 @@ mapserver = { - enable_crafting = minetest.settings:get("mapserver.enable_crafting") + enable_crafting = minetest.settings:get("mapserver.enable_crafting"), bridge = {} } @@ -27,7 +27,7 @@ if http then print("[Mapserver] starting mapserver-bridge with endpoint: " .. mapserver_url) dofile(MP .. "/bridge/init.lua") - + mapserver.bridge_init(http, mapserver_url, mapserver_key) else diff --git a/server/static/js/overlays/PoiOverlay.js b/server/static/js/overlays/PoiOverlay.js index 1f5146d..6cc57a4 100644 --- a/server/static/js/overlays/PoiOverlay.js +++ b/server/static/js/overlays/PoiOverlay.js @@ -3,7 +3,7 @@ var PoiOverlay = AbstractIconOverlay.extend({ initialize: function(wsChannel, layerMgr) { - AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "poi", PoiIcon); + AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "poi"); }, getIcon: function(obj){