Compare commits

...

4 Commits

Author SHA1 Message Date
8bbfb77ddb Ajoute message de chargement du mod dans le journal "action" 2018-12-26 21:20:29 +01:00
4d3f6505b5 Update settings in README 2018-07-23 12:28:06 +02:00
6772a29a37 Format titles in README 2018-07-23 12:26:04 +02:00
ca4b20ddcc fix deprecated calls 2017-12-10 22:39:28 -05:00
2 changed files with 10 additions and 8 deletions

View File

@ -1,4 +1,4 @@
#mapfix # mapfix
Fix some map errors (flow and light problems) Fix some map errors (flow and light problems)
@ -7,7 +7,7 @@ Fix some map errors (flow and light problems)
Look at the water and the jungle trunk at the center. Look at the water and the jungle trunk at the center.
##minetest.conf settings ## minetest.conf settings
* mapfix_default_size (by default 40) : size used when omitted * mapfix_default_size (by default 24) : size used when omitted
* mapfix_max_size (by default 50) : maximum size allowed for players * mapfix_max_size (by default 32) : maximum size allowed for players
* mapfix_delay (by default 15) : minimal delay in seconds between 2 "/mapfix" (to avoid server freezing) * mapfix_delay (by default 15) : minimal delay in seconds between 2 `/mapfix` (to avoid server freezing)

View File

@ -9,9 +9,9 @@ end
local previous = os.time() local previous = os.time()
local default_size = tonumber(minetest.setting_get("mapfix_default_size")) or 24 local default_size = tonumber(minetest.settings:get("mapfix_default_size")) or 24
local max_size = tonumber(minetest.setting_get("mapfix_max_size")) or 32 local max_size = tonumber(minetest.settings:get("mapfix_max_size")) or 32
local delay = tonumber(minetest.setting_get("mapfix_delay")) or 15 local delay = tonumber(minetest.settings:get("mapfix_delay")) or 15
minetest.register_chatcommand("mapfix", { minetest.register_chatcommand("mapfix", {
params = "<size>", params = "<size>",
@ -46,3 +46,5 @@ minetest.register_chatcommand("mapfix", {
return true, "Done." return true, "Done."
end, end,
}) })
minetest.log("action", "[mapfix] loaded.")