diff --git a/mods/API/Ensure/mod.conf b/mods/API/Ensure/mod.conf index 165cb90..c4e4e11 100644 --- a/mods/API/Ensure/mod.conf +++ b/mods/API/Ensure/mod.conf @@ -1 +1 @@ -name = api__ensure +name = smc__api__ensure diff --git a/mods/API/Math/mod.conf b/mods/API/Math/mod.conf index f8ab11c..dfc8e2b 100644 --- a/mods/API/Math/mod.conf +++ b/mods/API/Math/mod.conf @@ -1 +1 @@ -name = api__math +name = smc__api__math diff --git a/mods/API/Mod/mod.conf b/mods/API/Mod/mod.conf index be9b7e8..09f0f22 100644 --- a/mods/API/Mod/mod.conf +++ b/mods/API/Mod/mod.conf @@ -1 +1 @@ -name = api__mod_table +name = smc__api__mod_table diff --git a/mods/API/Require/mod.conf b/mods/API/Require/mod.conf index 744d1d5..bf79576 100644 --- a/mods/API/Require/mod.conf +++ b/mods/API/Require/mod.conf @@ -1 +1 @@ -name = api__require +name = smc__api__require diff --git a/mods/API/String/init.lua b/mods/API/String/init.lua index a5cf6fa..ba2da84 100644 --- a/mods/API/String/init.lua +++ b/mods/API/String/init.lua @@ -20,7 +20,7 @@ end --- Capitalizes each word in a line. --- @param str string Input string. ---- @return string +--- @return string? function string.to_title(str) ensureArgType(str, "string", 1, "string.to_title") @@ -38,8 +38,9 @@ end --- @return string function string.remove_underscores(str) ensureArgType(str, "string", 1, "string.remove_underscores") + local output = str:gsub("_", " ") - return str:gsub("_", " ") + return output end --- Checks if a string starts with `prefix`. diff --git a/mods/API/String/mod.conf b/mods/API/String/mod.conf index 072209c..441c6a2 100644 --- a/mods/API/String/mod.conf +++ b/mods/API/String/mod.conf @@ -1 +1 @@ -name = api__string +name = smc__api__string diff --git a/mods/API/System/mod.conf b/mods/API/System/mod.conf index 9612b38..89f8ec8 100644 --- a/mods/API/System/mod.conf +++ b/mods/API/System/mod.conf @@ -1,3 +1,3 @@ -name = api__system +name = smc__api__system description = Include this mod in your `depends` to ensure all necessary APIs are loaded for your mod -depends = api__ensure, api__math, api__mod, api__require, api__table, api__string, api__utf8, +depends = smc__api__ensure, smc__api__math, smc__api__mod, smc__api__require, smc__api__table, smc__api__string, smc__api__utf8, diff --git a/mods/API/Table/mod.conf b/mods/API/Table/mod.conf index 34ea8c4..ce3e1e3 100644 --- a/mods/API/Table/mod.conf +++ b/mods/API/Table/mod.conf @@ -1,2 +1,2 @@ -name = api__table -depends = api__ensure +name = smc__api__table +depends = smc__api__ensure diff --git a/mods/CORE/Entity/mod.conf b/mods/CORE/Entity/mod.conf index 49d36c3..48ee09a 100644 --- a/mods/CORE/Entity/mod.conf +++ b/mods/CORE/Entity/mod.conf @@ -1 +1 @@ -name = core__entity +name = smc__core__entity diff --git a/mods/CORE/EntityModular/mod.conf b/mods/CORE/EntityModular/mod.conf index 596f094..fd58fb4 100644 --- a/mods/CORE/EntityModular/mod.conf +++ b/mods/CORE/EntityModular/mod.conf @@ -1 +1 @@ -name = core__entity_modular +name = smc__core__entity_modular diff --git a/mods/CORE/Item/mod.conf b/mods/CORE/Item/mod.conf index 94c527d..f051d97 100644 --- a/mods/CORE/Item/mod.conf +++ b/mods/CORE/Item/mod.conf @@ -1,2 +1,2 @@ -name = core__item -depends = api__system +name = smc__core__item +depends = smc__api__system diff --git a/mods/CORE/ItemFactory/mod.conf b/mods/CORE/ItemFactory/mod.conf index 5bf6726..8a87cf9 100644 --- a/mods/CORE/ItemFactory/mod.conf +++ b/mods/CORE/ItemFactory/mod.conf @@ -1 +1 @@ -name = core__item_factory +name = smc__core__item_factory diff --git a/mods/CORE/ItemStackTimer/mod.conf b/mods/CORE/ItemStackTimer/mod.conf index 4ed64a9..7e2ff0d 100644 --- a/mods/CORE/ItemStackTimer/mod.conf +++ b/mods/CORE/ItemStackTimer/mod.conf @@ -1 +1 @@ -name = core__item_stack_timer +name = smc__core__item_stack_timer diff --git a/mods/CORE/Node/mod.conf b/mods/CORE/Node/mod.conf index 76b1bd4..bb0010e 100644 --- a/mods/CORE/Node/mod.conf +++ b/mods/CORE/Node/mod.conf @@ -1,2 +1,2 @@ -name = core__node -depends = core__item +name = smc__core__node +depends = smc__core__item diff --git a/mods/CORE/NodeFactory/mod.conf b/mods/CORE/NodeFactory/mod.conf index c03e061..707991e 100644 --- a/mods/CORE/NodeFactory/mod.conf +++ b/mods/CORE/NodeFactory/mod.conf @@ -1,2 +1,2 @@ -name = core__node_factory -depends = core__item_factory +name = smc__core__node_factory +depends = smc__core__item_factory diff --git a/mods/CORE/RecipeDynamic/mod.conf b/mods/CORE/RecipeDynamic/mod.conf index 0eb05ca..b72a6a5 100644 --- a/mods/CORE/RecipeDynamic/mod.conf +++ b/mods/CORE/RecipeDynamic/mod.conf @@ -1 +1 @@ -name = core__recipe_dynamic +name = smc__core__recipe_dynamic diff --git a/mods/CORE/RecipeStatic/mod.conf b/mods/CORE/RecipeStatic/mod.conf index 2eb4490..b590581 100644 --- a/mods/CORE/RecipeStatic/mod.conf +++ b/mods/CORE/RecipeStatic/mod.conf @@ -1 +1 @@ -name = core__recipe_static +name = smc__core__recipe_static diff --git a/mods/CORE/Structure/mod.conf b/mods/CORE/Structure/mod.conf index 4df12d4..7caece9 100644 --- a/mods/CORE/Structure/mod.conf +++ b/mods/CORE/Structure/mod.conf @@ -1 +1 @@ -name = core__structure +name = smc__core__structure diff --git a/mods/CORE/StructureModular/mod.conf b/mods/CORE/StructureModular/mod.conf index 318ca54..65da27c 100644 --- a/mods/CORE/StructureModular/mod.conf +++ b/mods/CORE/StructureModular/mod.conf @@ -1 +1 @@ -name = core__structure_modular +name = smc__core__structure_modular diff --git a/mods/CORE/Tag/mod.conf b/mods/CORE/Tag/mod.conf index 952bfd7..c988bd6 100644 --- a/mods/CORE/Tag/mod.conf +++ b/mods/CORE/Tag/mod.conf @@ -1 +1 @@ -name = core__tag +name = smc__core__tag diff --git a/mods/CORE/ToolInterface/mod.conf b/mods/CORE/ToolInterface/mod.conf index 6746e2b..9c99638 100644 --- a/mods/CORE/ToolInterface/mod.conf +++ b/mods/CORE/ToolInterface/mod.conf @@ -1 +1 @@ -name = core__tool_interface +name = smc__core__tool_interface diff --git a/mods/ENVIRONMENT/MapGen/mod.conf b/mods/ENVIRONMENT/MapGen/mod.conf index 24e1762..58a3dfc 100644 --- a/mods/ENVIRONMENT/MapGen/mod.conf +++ b/mods/ENVIRONMENT/MapGen/mod.conf @@ -1,2 +1,2 @@ -name = core__map_gen -depends = api__system \ No newline at end of file +name = smc__environment__map_gen +depends = smc__api__system \ No newline at end of file