aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-31 22:19:46 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-31 22:19:46 +0200
commitcdb6d6670c480f0499335e23696d5cdc5aaa1275 (patch)
treeb72e352a3bf6b162b43b11faf9159ae6f490b4d5
parent1c724e8b0f37a439b51ecfd8065c04863cbfcec9 (diff)
downloadskyhanni-cdb6d6670c480f0499335e23696d5cdc5aaa1275.tar.gz
skyhanni-cdb6d6670c480f0499335e23696d5cdc5aaa1275.tar.bz2
skyhanni-cdb6d6670c480f0499335e23696d5cdc5aaa1275.zip
Synced neu's on skyblock check with the one from skyhanni
-rw-r--r--src/main/java/at/hannibal2/skyhanni/mixins/transformers/MixinNotEnoughUpdates.java21
-rw-r--r--src/main/resources/mixins.skyhanni.json1
2 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/transformers/MixinNotEnoughUpdates.java b/src/main/java/at/hannibal2/skyhanni/mixins/transformers/MixinNotEnoughUpdates.java
new file mode 100644
index 000000000..3b4378e52
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/mixins/transformers/MixinNotEnoughUpdates.java
@@ -0,0 +1,21 @@
+package at.hannibal2.skyhanni.mixins.transformers;
+
+import at.hannibal2.skyhanni.utils.LorenzUtils;
+import io.github.moulberry.notenoughupdates.NotEnoughUpdates;
+import org.spongepowered.asm.mixin.Mixin;
+import org.spongepowered.asm.mixin.Shadow;
+import org.spongepowered.asm.mixin.injection.At;
+import org.spongepowered.asm.mixin.injection.Inject;
+import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
+
+@Mixin(value = NotEnoughUpdates.class, remap = false)
+public class MixinNotEnoughUpdates {
+
+ @Shadow
+ private boolean hasSkyblockScoreboard;
+
+ @Inject(method = "updateSkyblockScoreboard", at = @At(value = "TAIL"))
+ private void onLivingUpdate(CallbackInfo ci) {
+ hasSkyblockScoreboard = LorenzUtils.INSTANCE.getInSkyBlock();
+ }
+}
diff --git a/src/main/resources/mixins.skyhanni.json b/src/main/resources/mixins.skyhanni.json
index a05c6837d..c8d14cd14 100644
--- a/src/main/resources/mixins.skyhanni.json
+++ b/src/main/resources/mixins.skyhanni.json
@@ -9,6 +9,7 @@
"MixinEntityFireball",
"MixinNetHandlerPlayClient",
"MixinNetworkManager",
+ "MixinNotEnoughUpdates",
"MixinRenderItem",
"MixinRenderManager",
"gui.AccessorGuiContainer",