From 5cbe406fa4a44ea3896f1aacfcac278aa02a43b6 Mon Sep 17 00:00:00 2001 From: gameusefly Date: Sun, 7 Aug 2022 16:29:10 +0200 Subject: [PATCH] Move initialisation of the SmoothSwingThread to post init (fixes native loading on Linux) --- .../java/com/modularwarfare/client/ClientProxy.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/modularwarfare/client/ClientProxy.java b/src/main/java/com/modularwarfare/client/ClientProxy.java index 89378c2a..47f43ddd 100644 --- a/src/main/java/com/modularwarfare/client/ClientProxy.java +++ b/src/main/java/com/modularwarfare/client/ClientProxy.java @@ -87,7 +87,6 @@ import java.io.File; import java.io.FileWriter; -import java.io.IOException; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path; @@ -191,11 +190,6 @@ public void construction(FMLConstructionEvent event) { @Override public void preload() { - //Smooth Swing Ticker Runnable - SmoothSwingTicker smoothSwingTicker = new SmoothSwingTicker(); - Thread smoothTickThread = new Thread(smoothSwingTicker, "SmoothSwingThread"); - smoothTickThread.start(); - MinecraftForge.EVENT_BUS.register(this); startPatches(); } @@ -279,6 +273,11 @@ public void init() { ModConfig.INSTANCE.model_optimization = false; } + //Smooth Swing Ticker Runnable + SmoothSwingTicker smoothSwingTicker = new SmoothSwingTicker(); + Thread smoothTickThread = new Thread(smoothSwingTicker, "SmoothSwingThread"); + smoothTickThread.start(); + ModularWarfare.LOGGER.info("Preloading textures"); long time = System.currentTimeMillis(); preloadSkinTypes.forEach((skin, type) -> {