-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
14 deletions.
There are no files selected for viewing
17 changes: 3 additions & 14 deletions
17
common/src/main/java/xaeroplus/util/XaeroPlusGameTest.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 |
---|---|---|
@@ -1,21 +1,10 @@ | ||
package xaeroplus.util; | ||
|
||
import xaero.common.gui.GuiWaypoints; | ||
import xaero.map.gui.GuiMap; | ||
import xaeroplus.XaeroPlus; | ||
import org.spongepowered.asm.mixin.MixinEnvironment; | ||
|
||
public class XaeroPlusGameTest { | ||
public static void applyMixinsTest() { | ||
// forcing our mixins to apply by loading some classes that aren't loaded by just joining the game | ||
try { | ||
// todo: ideally we would iterate over every XP mixin class target and load them all | ||
// not sure how to get a list of all mixin targets though | ||
var a= GuiMap.class.getSimpleName(); | ||
var b= GuiWaypoints.class.getSimpleName(); | ||
XaeroPlus.LOGGER.info("Classload test complete"); | ||
} catch (final Throwable e) { | ||
XaeroPlus.LOGGER.error("Classload test failed", e); | ||
System.exit(1); | ||
} | ||
// forces all mixins to apply | ||
MixinEnvironment.getCurrentEnvironment().audit(); | ||
} | ||
} |