~fgaz/minetest-extruder

1626cacd9203d22b569e6a101e231dc13d0a89a0 — Francesco Gazzetta 1 year, 4 months ago 66ab9d8
Fix luacheck warnings
2 files changed, 5 insertions(+), 1 deletions(-)

M .luacheckrc
M init.lua
M .luacheckrc => .luacheckrc +4 -0
@@ 1,7 1,11 @@
local used_minetest_fields = {
  get_node = {},
  set_node = {},
  remove_node = {},
  register_tool = {},
  register_privilege = {},
  check_player_privs = {},
  chat_send_player = {},
}

stds.minetest = {

M init.lua => init.lua +1 -1
@@ 74,7 74,7 @@ local function extrude(surface, direction, remove)
end

local function check_privs_with_msg(player_or_name)
  local success, missing_privs = minetest.check_player_privs(player_or_name, "extruder")
  local success, _ = minetest.check_player_privs(player_or_name, "extruder")
  if not success then
    local player_name = type(player_or_name) == "string" and player_or_name or player_or_name:get_player_name()
    minetest.chat_send_player(player_name, modname .. ": Missing privileges: extruder")