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")