Skip to content

Commit

Permalink
Merge pull request #36 from StateMC/linuxsupport
Browse files Browse the repository at this point in the history
Move initialisation of the SmoothSwingThread to post init (fixes native loading on Linux)
  • Loading branch information
Protoxy22 authored Aug 7, 2022
2 parents fee12c8 + 5cbe406 commit 9560958
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/main/java/com/modularwarfare/client/ClientProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
}
Expand Down Expand Up @@ -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) -> {
Expand Down

0 comments on commit 9560958

Please sign in to comment.