No suggested mods
This commit is contained in:
@@ -47,8 +47,6 @@ public class Vars implements Loadable{
|
|||||||
public static final int bufferSize = 8192;
|
public static final int bufferSize = 8192;
|
||||||
/** global charset, since Android doesn't support the Charsets class */
|
/** global charset, since Android doesn't support the Charsets class */
|
||||||
public static final Charset charset = Charset.forName("UTF-8");
|
public static final Charset charset = Charset.forName("UTF-8");
|
||||||
/** mods suggested for import */
|
|
||||||
public static final String[] suggestedMods = {""};
|
|
||||||
/** main application name, capitalized */
|
/** main application name, capitalized */
|
||||||
public static final String appName = "Mindustry";
|
public static final String appName = "Mindustry";
|
||||||
/** URL for itch.io donations. */
|
/** URL for itch.io donations. */
|
||||||
|
|||||||
@@ -105,13 +105,9 @@ public class ModsDialog extends BaseDialog{
|
|||||||
|
|
||||||
t.button("@mod.import.github", Icon.github, bstyle, () -> {
|
t.button("@mod.import.github", Icon.github, bstyle, () -> {
|
||||||
dialog.hide();
|
dialog.hide();
|
||||||
var modString = Core.settings.getString("lastmod", "");
|
|
||||||
var suggested = Structs.random(suggestedMods);
|
|
||||||
|
|
||||||
ui.showTextInput("@mod.import.github", "", 64, modString.isEmpty() ? suggested : modString, text -> {
|
ui.showTextInput("@mod.import.github", "", 64, Core.settings.getString("lastmod", ""), text -> {
|
||||||
if(!modString.isEmpty() || !Structs.eq(suggested, text)){
|
Core.settings.put("lastmod", text);
|
||||||
Core.settings.put("lastmod", text);
|
|
||||||
}
|
|
||||||
|
|
||||||
ui.loadfrag.show();
|
ui.loadfrag.show();
|
||||||
//Try to download the 6.0 branch first, but if it doesn't exist, try master.
|
//Try to download the 6.0 branch first, but if it doesn't exist, try master.
|
||||||
|
|||||||
Reference in New Issue
Block a user