mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	@@ -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");
 | 
			
		||||
 
 | 
			
		||||
@@ -346,7 +346,7 @@ public class HashChunkletManager implements ChunkletManager {
 | 
			
		||||
 | 
			
		||||
        try {
 | 
			
		||||
            fileIn = new FileInputStream(location);
 | 
			
		||||
            objIn = new ObjectInputStream(fileIn);
 | 
			
		||||
            objIn = new ObjectInputStream(new BufferedInputStream(fileIn));
 | 
			
		||||
            storeIn = (ChunkletStore) objIn.readObject();
 | 
			
		||||
        }
 | 
			
		||||
        catch (IOException ex) {
 | 
			
		||||
 
 | 
			
		||||
@@ -75,7 +75,7 @@ public class BlockStoreConversionMain implements Runnable {
 | 
			
		||||
    public void softStop() {
 | 
			
		||||
        stop();
 | 
			
		||||
 | 
			
		||||
        if (this.dataDir.exists() || this.dataDir.isDirectory()) {
 | 
			
		||||
        if (this.dataDir.exists() && this.dataDir.isDirectory()) {
 | 
			
		||||
            start();
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
@@ -49,7 +49,9 @@ public class UUIDFetcher implements Callable<Map<String, UUID>> {
 | 
			
		||||
            String body = array.toString();
 | 
			
		||||
 | 
			
		||||
            writeBody(connection, body);
 | 
			
		||||
            JsonObject[] jsonStreamArray = gson.fromJson(new InputStreamReader(connection.getInputStream()), JsonObject[].class);
 | 
			
		||||
            InputStreamReader tempStream = new InputStreamReader(connection.getInputStream());
 | 
			
		||||
            JsonObject[] jsonStreamArray = gson.fromJson(tempStream, JsonObject[].class);
 | 
			
		||||
            tempStream.close();
 | 
			
		||||
 | 
			
		||||
            for (JsonObject jsonProfile : jsonStreamArray) {
 | 
			
		||||
                String id = jsonProfile.get("id").getAsString();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user