diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-31 22:19:46 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-31 22:19:46 +0200 |
commit | cdb6d6670c480f0499335e23696d5cdc5aaa1275 (patch) | |
tree | b72e352a3bf6b162b43b11faf9159ae6f490b4d5 /src/main/java | |
parent | 1c724e8b0f37a439b51ecfd8065c04863cbfcec9 (diff) | |
download | skyhanni-cdb6d6670c480f0499335e23696d5cdc5aaa1275.tar.gz skyhanni-cdb6d6670c480f0499335e23696d5cdc5aaa1275.tar.bz2 skyhanni-cdb6d6670c480f0499335e23696d5cdc5aaa1275.zip |
Synced neu's on skyblock check with the one from skyhanni
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/mixins/transformers/MixinNotEnoughUpdates.java | 21 |
1 files changed, 21 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(); + } +} |