mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +00:00
Fixes
This commit is contained in:
parent
ef6036a7d0
commit
a27bb66fef
@ -89,27 +89,30 @@ public class ProjectManager
|
|||||||
|
|
||||||
public ProjectManager()
|
public ProjectManager()
|
||||||
{
|
{
|
||||||
J.a(() ->
|
if(IrisSettings.get().isStudio())
|
||||||
{
|
{
|
||||||
File ignore = Iris.instance.getDataFile("packs", ".gitignore");
|
J.a(() ->
|
||||||
|
|
||||||
if(!ignore.exists())
|
|
||||||
{
|
{
|
||||||
File m = Iris.getCached("Pack Ignore (.gitignore)", "https://raw.githubusercontent.com/VolmitSoftware/Iris/master/packignore.ignore");
|
File ignore = Iris.instance.getDataFile("packs", ".gitignore");
|
||||||
if(m != null)
|
|
||||||
|
if(!ignore.exists())
|
||||||
{
|
{
|
||||||
try
|
File m = Iris.getCached("Pack Ignore (.gitignore)", "https://raw.githubusercontent.com/VolmitSoftware/Iris/master/packignore.ignore");
|
||||||
|
if(m != null)
|
||||||
{
|
{
|
||||||
IO.copyFile(m, ignore);
|
try
|
||||||
}
|
{
|
||||||
|
IO.copyFile(m, ignore);
|
||||||
|
}
|
||||||
|
|
||||||
catch(IOException e)
|
catch(IOException e)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void downloadSearch(MortarSender sender, String key, boolean trim)
|
public void downloadSearch(MortarSender sender, String key, boolean trim)
|
||||||
|
@ -19,6 +19,9 @@ public class CommandIris extends MortarCommand
|
|||||||
@Command
|
@Command
|
||||||
private CommandIrisObject object;
|
private CommandIrisObject object;
|
||||||
|
|
||||||
|
@Command
|
||||||
|
private CommandIrisDownload download;
|
||||||
|
|
||||||
@Command
|
@Command
|
||||||
private CommandIrisWhat what;
|
private CommandIrisWhat what;
|
||||||
|
|
||||||
|
@ -7,9 +7,9 @@ import com.volmit.iris.util.J;
|
|||||||
import com.volmit.iris.util.MortarCommand;
|
import com.volmit.iris.util.MortarCommand;
|
||||||
import com.volmit.iris.util.MortarSender;
|
import com.volmit.iris.util.MortarSender;
|
||||||
|
|
||||||
public class CommandIrisStudioDownload extends MortarCommand
|
public class CommandIrisDownload extends MortarCommand
|
||||||
{
|
{
|
||||||
public CommandIrisStudioDownload()
|
public CommandIrisDownload()
|
||||||
{
|
{
|
||||||
super("download", "down", "dl");
|
super("download", "down", "dl");
|
||||||
requiresPermission(Iris.perm.studio);
|
requiresPermission(Iris.perm.studio);
|
@ -17,9 +17,6 @@ public class CommandIrisStudio extends MortarCommand
|
|||||||
@Command
|
@Command
|
||||||
private CommandIrisStudioClose close;
|
private CommandIrisStudioClose close;
|
||||||
|
|
||||||
@Command
|
|
||||||
private CommandIrisStudioDownload download;
|
|
||||||
|
|
||||||
@Command
|
@Command
|
||||||
private CommandIrisStudioPackage pkg;
|
private CommandIrisStudioPackage pkg;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user