mirror of
https://github.com/minetest-mods/mapfix.git
synced 2025-01-09 15:50:19 +01:00
fix deprecated calls
This commit is contained in:
parent
d4e9de50a9
commit
ca4b20ddcc
6
init.lua
6
init.lua
@ -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>",
|
||||||
|
Loading…
Reference in New Issue
Block a user