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:
CocoTheOwner 2020-12-18 17:14:52 +01:00
parent 2f29953ccb
commit 1365d442e9

View File

@ -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())