From cc0ed855a92947a4fb372c1d2452be00ce731152 Mon Sep 17 00:00:00 2001 From: AFCMS Date: Thu, 24 Jun 2021 23:45:47 +0200 Subject: [PATCH] fixes --- mods/CORE/mcl_commands/api.lua | 2 +- mods/CORE/mcl_commands/register/seed.lua | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mods/CORE/mcl_commands/api.lua b/mods/CORE/mcl_commands/api.lua index e4b7f6d32..ff3aebacf 100644 --- a/mods/CORE/mcl_commands/api.lua +++ b/mods/CORE/mcl_commands/api.lua @@ -103,7 +103,7 @@ end function mcl_commands.register_basic_command(name, def) local func if def.params then - local funcparams = + local funcparams = "" return else mcl_commands.registered_commands[name] = {type = "basic", description = def.desc, privs = def.privs} diff --git a/mods/CORE/mcl_commands/register/seed.lua b/mods/CORE/mcl_commands/register/seed.lua index 6a99d53cb..607134587 100644 --- a/mods/CORE/mcl_commands/register/seed.lua +++ b/mods/CORE/mcl_commands/register/seed.lua @@ -1,10 +1,12 @@ local S = minetest.get_translator(minetest.get_current_modname()) +local seed = minetest.get_mapgen_setting("seed") + minetest.register_chatcommand("seed", { description = S("Displays the world seed"), params = "", privs = {}, func = function(name) - minetest.chat_send_player(name, "Seed: "..minetest.get_mapgen_setting("seed")) + minetest.chat_send_player(name, "Seed: "..seed) end }) \ No newline at end of file