diff options
author | Linnea Gräf <nea@nea.moe> | 2024-12-04 16:48:46 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-12-04 16:48:46 +0100 |
commit | cdb5e60f52eea9030af9ca2d4a49913664023965 (patch) | |
tree | 11900a2aeb2baa15888990cc683754c95a20ab74 /src/compat/rei/java/moe | |
parent | 5efcb03378dae123fabe6ffc38a584cad423fa7f (diff) | |
download | Firmament-cdb5e60f52eea9030af9ca2d4a49913664023965.tar.gz Firmament-cdb5e60f52eea9030af9ca2d4a49913664023965.tar.bz2 Firmament-cdb5e60f52eea9030af9ca2d4a49913664023965.zip |
feat: Hide incorrect REI warningmc-1.21.3
Fixes https://github.com/nea89o/Firmament/issues/52
Diffstat (limited to 'src/compat/rei/java/moe')
-rw-r--r-- | src/compat/rei/java/moe/nea/firmament/mixins/compat/HideREIRecipeWarning.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/compat/rei/java/moe/nea/firmament/mixins/compat/HideREIRecipeWarning.java b/src/compat/rei/java/moe/nea/firmament/mixins/compat/HideREIRecipeWarning.java new file mode 100644 index 0000000..14eeaf2 --- /dev/null +++ b/src/compat/rei/java/moe/nea/firmament/mixins/compat/HideREIRecipeWarning.java @@ -0,0 +1,20 @@ +package moe.nea.firmament.mixins.compat; + +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.Pseudo; +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(targets = "me.shedaniel.rei.impl.client.gui.hints.ImportantWarningsWidget") +@Pseudo +public class HideREIRecipeWarning { + @Shadow + private boolean visible; + + @Inject(method = "<init>", at = @At("TAIL")) + private void onCreateImportantWidget(CallbackInfo ci) { + visible = false; + } +} |