Merge pull request #4152 from FlXME/master

Fix various bugs
This commit is contained in:
Robert Alan Chapton
2020-05-01 14:29:35 -07:00
committed by GitHub
4 changed files with 9 additions and 7 deletions

View File

@ -54,15 +54,15 @@ public class WorldBlacklist {
if(!blacklist.contains(currentLine))
blacklist.add(currentLine);
}
//Close readers
bufferedReader.close();
fileReader.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e)
{
e.printStackTrace();
} finally {
//Close readers
if(bufferedReader != null) bufferedReader.close();
if(fileReader != null) fileReader.close();
}
plugin.getLogger().info(blacklist.size()+" entries in mcMMO World Blacklist");