This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
forked from kami-blue/client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement forgelin fully and fix crashes
- Loading branch information
Showing
4 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/main/java/net/shadowfacts/forgelin/preloader/ForgelinSetup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package net.shadowfacts.forgelin.preloader; | ||
|
||
import net.minecraftforge.fml.relauncher.IFMLCallHook; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* @author shadowfacts | ||
*/ | ||
public class ForgelinSetup implements IFMLCallHook { | ||
|
||
@Override | ||
public void injectData(Map<String, Object> data) { | ||
ClassLoader loader = (ClassLoader)data.get("classLoader"); | ||
try { | ||
loader.loadClass("net.shadowfacts.forgelin.KotlinAdapter"); | ||
} catch (ClassNotFoundException e) { | ||
// this should never happen | ||
throw new RuntimeException("Couldn't find Forgelin langague adapter, this shouldn't be happening", e); | ||
} | ||
} | ||
|
||
@Override | ||
public Void call() throws Exception { | ||
return null; | ||
} | ||
|
||
} |