Executes mc.refreshResources() in main thread to fix ConcurrentModificationExceptions | https://trello.com/c/4gBrdiyB/104
This commit is contained in:
@@ -154,7 +154,12 @@ public class ReplayMod {
|
||||
public void run() {
|
||||
try {
|
||||
mc.defaultResourcePacks.add(new LocalizedResourcePack());
|
||||
mc.refreshResources();
|
||||
mc.addScheduledTask(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
mc.refreshResources();
|
||||
}
|
||||
});
|
||||
} catch(Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user