diff --git a/API.md b/API.md index f816ad9..4cf5445 100644 --- a/API.md +++ b/API.md @@ -256,7 +256,7 @@ to all blocks which are member of the group `puts_out_fire`. end end) -### `doc.sub.items.add_real_group_names(groupnames)` +### `doc.sub.items.add_friendly_group_names(groupnames)` Use this function so set some more readable group names to show them in the formspec, since the internal group names are somewhat cryptic to players. @@ -266,7 +266,7 @@ the values are the group names which will be actually shown in the Documentation System. ***Note***: This function is mostly there to work around a problem in -Minetest as it does not support “real” group names, which means exposing +Minetest as it does not support “friendly” group names, which means exposing groups to an interface is not pretty. Therefore, this function may be deprecated when Minetest supports such a thing. diff --git a/init.lua b/init.lua index 9d170ef..12bbb70 100644 --- a/init.lua +++ b/init.lua @@ -888,8 +888,9 @@ function doc.sub.items.add_item_image_overrides(image_overrides) end -- Register group definition stuff --- “Real” group names to replace the rather technical names -function doc.sub.items.add_real_group_names(groupnames) +-- More (user-)friendly group names to replace the rather technical names +-- for better understanding +function doc.sub.items.add_friendly_group_names(groupnames) for internal, real in pairs(groupnames) do groupdefs[internal] = real end