Executes mc.refreshResources() in main thread to fix ConcurrentModificationExceptions | https://trello.com/c/4gBrdiyB/104

This commit is contained in:
CrushedPixel
2015-06-29 12:30:15 +02:00
parent 58d7018480
commit d6aadcaf94

View File

@@ -154,7 +154,12 @@ public class ReplayMod {
public void run() { public void run() {
try { try {
mc.defaultResourcePacks.add(new LocalizedResourcePack()); mc.defaultResourcePacks.add(new LocalizedResourcePack());
mc.addScheduledTask(new Runnable() {
@Override
public void run() {
mc.refreshResources(); mc.refreshResources();
}
});
} catch(Exception e) { } catch(Exception e) {
e.printStackTrace(); e.printStackTrace();
} }