Skip to content

Commit

Permalink
make sure "/" is appended to forge compat mods
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Nov 23, 2023
1 parent 1fdcad1 commit 4f3912b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ private void handleForgeGui(ModContainer mod) {
? null
: metadata.logoFile;
if (modLogoFile != null && !isForgeContainer) {
if (modLogoFile.startsWith("/")) {
modLogoFile = modLogoFile.substring(1);
if (!modLogoFile.startsWith("/") || !modLogoFile.startsWith("http://") || !modLogoFile.startsWith("https://")) {
modLogoFile = "/" + modLogoFile;
}
if (!modLogoFile.startsWith("assets/")) {
modLogoFile = "/assets/" + modLogoFile;
Expand Down

0 comments on commit 4f3912b

Please sign in to comment.