mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Patches my own previous code
Error prevention code was already in place but was misplaced. The method was ran prior to the null check.
This commit is contained in:
parent
1365d442e9
commit
68214cf16f
@ -53,12 +53,18 @@ public class IrisProject
|
||||
}
|
||||
|
||||
IrisDimension d = IrisDataManager.loadAnyDimension(getName());
|
||||
if(d == null)
|
||||
{
|
||||
sender.sendMessage("Can't find dimension: " + getName());
|
||||
return;
|
||||
}
|
||||
|
||||
J.attemptAsync(() ->
|
||||
{
|
||||
try
|
||||
{
|
||||
if (d.getLoader() == null){
|
||||
sender.sendMessage("That pack does not exist");
|
||||
sender.sendMessage("Could not get dimension loader");
|
||||
return;
|
||||
}
|
||||
File f = d.getLoader().getDataFolder();
|
||||
@ -109,11 +115,6 @@ public class IrisProject
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
if(d == null)
|
||||
{
|
||||
sender.sendMessage("Can't find dimension: " + getName());
|
||||
return;
|
||||
}
|
||||
|
||||
String wfp = "iris/" + UUID.randomUUID();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user