From c0eb6b5920d3668efcd07786c80f0c3595a85cf4 Mon Sep 17 00:00:00 2001 From: Vanic Date: Thu, 25 Sep 2025 14:42:16 +0000 Subject: [PATCH] Mod: minor change --- mods/API/Mod/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/API/Mod/init.lua b/mods/API/Mod/init.lua index 8e76fde..3ad3e73 100644 --- a/mods/API/Mod/init.lua +++ b/mods/API/Mod/init.lua @@ -10,7 +10,7 @@ Mod = {} ---Returns the mod name without prefixes ---@param name string ---@return string -function Mod.getShortModName(name) +local function getShortModName(name) local shortName = string.gsub(name, '%w*__', '') return shortName @@ -20,7 +20,7 @@ end ---@return {name: string, shortName: string, path: string, require: fun(FileName : string): table} function Mod.getInfo() local name = core.get_current_modname() - local shortName = Mod.getShortModName(name) + local shortName = getShortModName(name) local path = core.get_modpath(name) local require = Require.getModRequire(name, path)