blob: db51741197e5874a54b9589666e9e9bdbb6508e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package me.xmrvizzy.skyblocker.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 me.xmrvizzy.skyblocker.config.SkyblockerConfig;
import me.xmrvizzy.skyblocker.utils.Utils;
import net.minecraft.client.gui.screen.ingame.AbstractInventoryScreen;
@Mixin(AbstractInventoryScreen.class)
public class AbstractInventoryScreenMixin {
@Inject(method = "drawStatusEffects", at = @At("HEAD"), cancellable = true)
private void skyblocker$dontDrawStatusEffects(CallbackInfo ci) {
if (Utils.isOnSkyblock() && SkyblockerConfig.get().general.hideStatusEffectOverlay) ci.cancel();
}
}
|