Update ModsDialog.java
This commit is contained in:
@@ -30,7 +30,7 @@ public class ModsDialog extends FloatingDialog{
|
|||||||
.size(210f, 64f);
|
.size(210f, 64f);
|
||||||
|
|
||||||
buttons.addImageTextButton("$mod.import.github", Icon.github, () -> {
|
buttons.addImageTextButton("$mod.import.github", Icon.github, () -> {
|
||||||
ui.showTextInput("$mod.import.github", "", "Anuken/ExampleMod", text -> {
|
ui.showTextInput("$mod.import.github", "", 64, "Anuken/ExampleMod", text -> {
|
||||||
ui.loadfrag.show();
|
ui.loadfrag.show();
|
||||||
Core.net.httpGet("http://api.github.com/repos/" + text + "/zipball/master", loc -> {
|
Core.net.httpGet("http://api.github.com/repos/" + text + "/zipball/master", loc -> {
|
||||||
Core.net.httpGet(loc.getHeader("Location"), result -> {
|
Core.net.httpGet(loc.getHeader("Location"), result -> {
|
||||||
@@ -146,4 +146,4 @@ public class ModsDialog extends FloatingDialog{
|
|||||||
});
|
});
|
||||||
}).margin(12f).width(500f);
|
}).margin(12f).width(500f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user