diff --git a/docs/apidoc/meta.md b/docs/apidoc/meta.md index f275746..3c94817 100644 --- a/docs/apidoc/meta.md +++ b/docs/apidoc/meta.md @@ -3,9 +3,9 @@ ModAPI.meta contains the API for registering metadata on mods easily. Methods: - `ModAPI.meta.title(title: String)` - - Sets the title of the mod. This is mandatory if any metadata is to be displayed. Character limit of 14. + - Sets the title of the mod. This is mandatory if any metadata is to be displayed. Character limit of 16. - `ModAPI.meta.credits(credits: String)` - - Sets the credits of the mod. Character limit of 16. + - Sets the credits of the mod. Character limit of 24. - `ModAPI.meta.description(desc: String)` - Sets the description of the mod. Character limit of 64. - `ModAPI.meta.icon(iconURL: String)` diff --git a/postinit.injector.js b/postinit.injector.js index f8bfebf..d5925be 100644 --- a/postinit.injector.js +++ b/postinit.injector.js @@ -33,7 +33,7 @@ globalThis.modapi_postinit = `(() => { if (!document.currentScript.hasAttribute("data-hash")) { return console.log("[ModAPIMeta] Script does not have a hashcode."); } - ModAPI.meta._titleMap[document.currentScript.getAttribute("data-hash")] = limitSize(title, 14); + ModAPI.meta._titleMap[document.currentScript.getAttribute("data-hash")] = limitSize(title, 16); } ModAPI.meta.icon = function (iconSrc) { if (!document.currentScript || document.currentScript.getAttribute("data-isMod") !== "true") { @@ -51,7 +51,7 @@ globalThis.modapi_postinit = `(() => { if (!document.currentScript.hasAttribute("data-hash")) { return console.log("[ModAPIMeta] Script does not have a hashcode."); } - ModAPI.meta._developerMap[document.currentScript.getAttribute("data-hash")] = limitSize(cd, 16); + ModAPI.meta._developerMap[document.currentScript.getAttribute("data-hash")] = limitSize(cd, 24); } ModAPI.meta.description = function (desc) { if (!document.currentScript || document.currentScript.getAttribute("data-isMod") !== "true") { diff --git a/postinit.js b/postinit.js index c2a9c8a..9f91e5c 100644 --- a/postinit.js +++ b/postinit.js @@ -33,7 +33,7 @@ if (!document.currentScript.hasAttribute("data-hash")) { return console.log("[ModAPIMeta] Script does not have a hashcode."); } - ModAPI.meta._titleMap[document.currentScript.getAttribute("data-hash")] = limitSize(title, 14); + ModAPI.meta._titleMap[document.currentScript.getAttribute("data-hash")] = limitSize(title, 16); } ModAPI.meta.icon = function (iconSrc) { if (!document.currentScript || document.currentScript.getAttribute("data-isMod") !== "true") { @@ -51,7 +51,7 @@ if (!document.currentScript.hasAttribute("data-hash")) { return console.log("[ModAPIMeta] Script does not have a hashcode."); } - ModAPI.meta._developerMap[document.currentScript.getAttribute("data-hash")] = limitSize(cd, 16); + ModAPI.meta._developerMap[document.currentScript.getAttribute("data-hash")] = limitSize(cd, 24); } ModAPI.meta.description = function (desc) { if (!document.currentScript || document.currentScript.getAttribute("data-isMod") !== "true") {