Prevented repeated Freezes caused by LocalizedResourcePack if ReplayMod.com is not available

This commit is contained in:
CrushedPixel
2015-06-24 17:55:51 +02:00
parent febdf9be52
commit f862b46274
2 changed files with 21 additions and 6 deletions

View File

@@ -149,12 +149,19 @@ public class ReplayMod {
//clean up replay_recordings folder
removeTmcprFiles();
try {
mc.defaultResourcePacks.add(new LocalizedResourcePack());
mc.refreshResources();
} catch(Exception e) {
e.printStackTrace();
}
Thread localizedResourcePackLoader = new Thread(new Runnable() {
@Override
public void run() {
try {
mc.defaultResourcePacks.add(new LocalizedResourcePack());
mc.refreshResources();
} catch(Exception e) {
e.printStackTrace();
}
}
}, "localizedResourcePackLoader");
localizedResourcePackLoader.start();
/*
boolean auth = false;