Code-style

master
MoNTE48 2020-03-16 02:23:54 +01:00
parent db8af0d6ad
commit 92afd99b31
4 changed files with 18 additions and 22 deletions

View File

@ -100,8 +100,7 @@ License
-------
Copyright (C) 2013 ShadowNinja
Copyright (C) 2019 MultiCraft Development Team
Copyright (C) 2019-2020 MultiCraft Development Team
Licensed under the GNU LGPL version 3.0 or later.
See https://www.gnu.org/licenses/lgpl-3.0.txt

View File

@ -421,4 +421,3 @@ minetest.register_chatcommand("area_info", {
return true, table.concat(lines, "\n")
end,
})

View File

@ -14,8 +14,9 @@ local function setting(tp, name, default)
elseif tp == "number" then
value = tonumber(minetest.settings:get(full_name))
else
error("Invalid setting type!")
error("Cannot parse setting type " .. tp)
end
if value == nil then
value = default
end
@ -37,6 +38,3 @@ setting("number", "self_protection_max_areas", 4)
-- For players with the areas_high_limit privilege.
setting("position", "self_protection_max_size_high", {x = 512, y = 512, z = 512})
setting("number", "self_protection_max_areas_high", 32)
-- configure the refresh delay for the name displays in the HUD
setting("number", "tick", 1)