Open 0x15d3 opened 7 months ago
@Mixin(MinecraftClient.class)
public class MixinMinecraftClient {
@Inject(method = "tick", at = @At("HEAD"))
void preTickHook(CallbackInfo ci) {
if (!fullNullCheck()) EVENT_BUS.post(new EventTick());
}
@Inject(method = "tick", at = @At("RETURN"))
void postTickHook(CallbackInfo ci) {
if (!fullNullCheck()) EVENT_BUS.post(new EventPostTick());
}
}
here is my MixinMinecraftClient mixin
orbit’s not present at runtime, you need to include it in some way
public class agony implements ModInitializer, ClientModInitializer {
public static final MinecraftClient MC = MinecraftClient.getInstance();
public static final IEventBus EVENT_BUS = new EventBus(); <--------
public static final String NAME = "agn.pw";
public static final String VERSION = "v1.8.7-dev";
public static final String VERHASH = "7a9038b31a782caa66f3b7c86d8a49903c245652".substring(0, 12);
public static float TIMER = 1f;
public static long initTime;
public static final Logger LOGGER = LogManager.getLogger("agony");
@Override
public void onInitialize() {
EVENT_BUS.registerLambdaFactory("me.artren.kclient", (lookupInMethod, klass) -> (MethodHandles.Lookup) lookupInMethod.invoke(null, klass, MethodHandles.lookup()));
}
@Override
public void onInitializeClient() {
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
moduleManager.onUnload();
friendManager.saveFriends();
configManager.saveConfig(configManager.config.replaceFirst("agony/", ""));
}));
}
}
thats how i include it
i can launch game on intellij but i cant launch it in multimc it gives me this error