moved async worker to public package

This commit is contained in:
FalsePattern committed 2022-06-10 02:55:46 +02:00
1 parent acd210f317
commit 4f12582a41
5 files changed
+24 -13

No files matched your search

@@ -2,6 +2,7 @@ package com.falsepattern.lib.internal.proxy;
import com.falsepattern.lib.internal.FalsePatternLib;
import com.falsepattern.lib.text.FormattedText;
import com.falsepattern.lib.util.Async;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
@@ -33,7 +34,7 @@ public class ClientProxy extends CommonProxy {
@Override
public void postInit(FMLPostInitializationEvent e) {
super.postInit(e);
chatFuture = FalsePatternLib.getAsyncWorker().submit(() -> {
chatFuture = Async.asyncWorker.submit(() -> {
long start = System.nanoTime();
val updates = updatesFuture.get();
if (updates == null || updates.size() == 0) return null;