mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-27 19:24:44 +02:00
@ -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