aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinLoadingScreenRenderer.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinLoadingScreenRenderer.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinLoadingScreenRenderer.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinLoadingScreenRenderer.java b/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinLoadingScreenRenderer.java
index fff9f29d..d98add96 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinLoadingScreenRenderer.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinLoadingScreenRenderer.java
@@ -9,12 +9,10 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(LoadingScreenRenderer.class)
public class MixinLoadingScreenRenderer {
-
@Inject(method = "setLoadingProgress", at = @At(value = "HEAD"), cancellable = true)
public void setLoadingProgress(int progress, CallbackInfo ci) {
if (progress < 0 && !FancyPortals.shouldRenderLoadingScreen()) {
ci.cancel();
}
}
-
}