Skip to content

Commit

Permalink
Merge branch '1.20.1' into 1.19.4
Browse files Browse the repository at this point in the history
  • Loading branch information
rfresh2 committed Oct 26, 2024
2 parents 7e4100f + 9f70028 commit a5d4fc8
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions common/src/main/java/xaeroplus/util/XaeroPlusGameTest.java
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();
}
}

0 comments on commit a5d4fc8

Please sign in to comment.