From 23b0bd5aad5efd15a9fcd7504d765f2d22f752a8 Mon Sep 17 00:00:00 2001 From: alek13 Date: Thu, 13 Jul 2023 00:29:10 +0300 Subject: [PATCH] MapGen: extract functions (improve readability, reduce cyclomatic complexity). Relates to lord-server/lord#1059, lord-server/lord#1058 --- minetest_types.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/minetest_types.lua b/minetest_types.lua index 1a3b4c2..80c0d2a 100644 --- a/minetest_types.lua +++ b/minetest_types.lua @@ -1993,6 +1993,8 @@ function minetest.raillike_group(name) end --- * Gets the internal content ID of `name` --- --- [View in lua_api.txt](https://github.com/minetest/minetest/blob/5.4.1/doc/lua_api.txt#L5662-L5663) +--- @param name string +--- @return number function minetest.get_content_id(name) end --- Returns a string --- * Gets the name of the content with that content ID