mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +00:00
Warn instead of NPE on open non-existing
When opening non-existing packs a NPE is raised, this should resolve that.
This commit is contained in:
parent
2f29953ccb
commit
1365d442e9
@ -57,6 +57,10 @@ public class IrisProject
|
||||
{
|
||||
try
|
||||
{
|
||||
if (d.getLoader() == null){
|
||||
sender.sendMessage("That pack does not exist");
|
||||
return;
|
||||
}
|
||||
File f = d.getLoader().getDataFolder();
|
||||
boolean foundWork = false;
|
||||
for(File i : f.listFiles())
|
||||
|
Loading…
x
Reference in New Issue
Block a user