use the meteor built-in updater
(click on the name in title screen credits)
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
package anticope.rejects.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
import net.minecraft.client.gui.screen.TitleScreen;
|
||||
import net.minecraft.client.util.math.MatrixStack;
|
||||
|
||||
import anticope.rejects.utils.RejectsConfig;
|
||||
import anticope.rejects.utils.UpdateUtil;
|
||||
import meteordevelopment.meteorclient.utils.network.MeteorExecutor;
|
||||
|
||||
@Mixin(value = TitleScreen.class)
|
||||
public class TitleScreenMixin {
|
||||
@Inject(method = "render", at = @At("TAIL"))
|
||||
private void onRender(MatrixStack matrices, int mouseX, int mouseY, float delta, CallbackInfo info) {
|
||||
if (RejectsConfig.get().checkForUpdates) {
|
||||
MeteorExecutor.execute(() -> {
|
||||
UpdateUtil.checkUpdate();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user