Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

Commit 84b25f8

Browse files
committed
#6: fixed jassimp not loading
1 parent 4e7d9ad commit 84b25f8

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

src/main/java/me/earth/earthhack/impl/Earthhack.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package me.earth.earthhack.impl;
22

3+
import com.badlogic.gdx.physics.bullet.Bullet;
4+
import jassimp.IHMCJassimp;
35
import me.earth.earthhack.api.util.interfaces.Globals;
46
import me.earth.earthhack.impl.core.ducks.IMinecraft;
57
import me.earth.earthhack.impl.managers.Managers;
@@ -9,6 +11,7 @@
911
import org.apache.logging.log4j.LogManager;
1012
import org.apache.logging.log4j.Logger;
1113
import org.lwjgl.opengl.Display;
14+
import us.ihmc.tools.nativelibraries.NativeLibraryLoader;
1215

1316
public class Earthhack implements Globals
1417
{
@@ -24,14 +27,20 @@ public static void preInit()
2427
public static void init()
2528
{
2629
LOGGER.info("\n\nInitializing 3arthh4ck.");
27-
Display.setTitle("3arthh4ck - " + VERSION);
30+
31+
//noinspection InstantiationOfUtilityClass
32+
new IHMCJassimp(); // call static initializer
33+
NativeLibraryLoader.loadLibrary("bullet", "bullet");
34+
Bullet.init();
35+
36+
Display.setTitle(NAME + " - " + VERSION);
2837
Managers.load();
2938
LOGGER.info("\n3arthh4ck initialized.\n");
3039
}
3140

3241
public static void postInit()
3342
{
34-
43+
// For Plugins if they need it.
3544
}
3645

3746
public static Logger getLogger()

0 commit comments

Comments
 (0)