From dd0719c6f11b3a4564aece58a00dd40f20ec52d0 Mon Sep 17 00:00:00 2001 From: MEEPofFaith <54301439+MEEPofFaith@users.noreply.github.com> Date: Tue, 16 Apr 2024 16:48:44 -0700 Subject: [PATCH] modName -> internalName https://github.com/Anuken/MindustryMods/pull/31/commits/4746a2fd1ea6928fe30df308c1c2a3505f02354c --- core/src/mindustry/mod/ModListing.java | 4 ++-- core/src/mindustry/ui/dialogs/ModsDialog.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/mindustry/mod/ModListing.java b/core/src/mindustry/mod/ModListing.java index 1c029ac122..ccdb88b717 100644 --- a/core/src/mindustry/mod/ModListing.java +++ b/core/src/mindustry/mod/ModListing.java @@ -2,7 +2,7 @@ package mindustry.mod; /** Mod listing as a data class. */ public class ModListing{ - public String repo, name, modName, subtitle, author, lastUpdated, description, minGameVersion; + public String repo, name, internalName, subtitle, author, lastUpdated, description, minGameVersion; public boolean hasScripts, hasJava; public String[] contentTypes = {}; public int stars; @@ -12,7 +12,7 @@ public class ModListing{ return "ModListing{" + "repo='" + repo + '\'' + ", name='" + name + '\'' + - ", modName='" + modName + '\'' + + ", internalName='" + internalName + '\'' + ", author='" + author + '\'' + ", lastUpdated='" + lastUpdated + '\'' + ", description='" + description + '\'' + diff --git a/core/src/mindustry/ui/dialogs/ModsDialog.java b/core/src/mindustry/ui/dialogs/ModsDialog.java index 804e4ab8ed..9d8041c7fb 100644 --- a/core/src/mindustry/ui/dialogs/ModsDialog.java +++ b/core/src/mindustry/ui/dialogs/ModsDialog.java @@ -675,7 +675,7 @@ public class ModsDialog extends BaseDialog{ public void importDependencies(Seq dependencies){ getModList(listings -> { - listings.each(l -> dependencies.contains(l.modName), l -> { + listings.each(l -> dependencies.contains(l.internalName), l -> { githubImportMod(l.repo, l.hasJava); }); });