MapGen: extract functions (improve readability, reduce cyclomatic complexity). Relates to lord-server/lord#1059, lord-server/lord#1058

This commit is contained in:
alek13
2023-07-13 00:29:10 +03:00
parent a27595b097
commit 23b0bd5aad

View File

@@ -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