From 79d153b04cd21b8043ebf77b41f23b111d856bb7 Mon Sep 17 00:00:00 2001 From: quentin452 <42176772+quentin452@users.noreply.github.com> Date: Fri, 30 Jun 2023 23:57:26 +0200 Subject: [PATCH] Fix #135 from official repo , removed broken mixin --- ...oadingScreenRendererMixin_SkipProgress.java | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 src/main/java/club/sk1er/patcher/mixins/performance/LoadingScreenRendererMixin_SkipProgress.java diff --git a/src/main/java/club/sk1er/patcher/mixins/performance/LoadingScreenRendererMixin_SkipProgress.java b/src/main/java/club/sk1er/patcher/mixins/performance/LoadingScreenRendererMixin_SkipProgress.java deleted file mode 100644 index 04be6051f..000000000 --- a/src/main/java/club/sk1er/patcher/mixins/performance/LoadingScreenRendererMixin_SkipProgress.java +++ /dev/null @@ -1,18 +0,0 @@ -package club.sk1er.patcher.mixins.performance; - -import club.sk1er.patcher.config.PatcherConfig; -import net.minecraft.client.LoadingScreenRenderer; -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; - -@Mixin(LoadingScreenRenderer.class) -public class LoadingScreenRendererMixin_SkipProgress { - @Inject(method = "setLoadingProgress", at = @At("HEAD"), cancellable = true) - private void patcher$skipProgress(int progress, CallbackInfo ci) { - if (progress < 0 || PatcherConfig.optimizedWorldSwapping) { - ci.cancel(); - } - } -}