Merge pull request #165
* fix: let hide potion effects hide top right * convert to own opiton
This commit is contained in:
@@ -4,6 +4,7 @@ package moe.nea.firmament.mixins;
|
||||
|
||||
import moe.nea.firmament.events.HotbarItemRenderEvent;
|
||||
import moe.nea.firmament.events.HudRenderEvent;
|
||||
import moe.nea.firmament.features.fixes.Fixes;
|
||||
import net.minecraft.client.gui.DrawContext;
|
||||
import net.minecraft.client.gui.hud.InGameHud;
|
||||
import net.minecraft.client.render.RenderTickCounter;
|
||||
@@ -26,4 +27,10 @@ public class HudRenderEventsPatch {
|
||||
if (stack != null && !stack.isEmpty())
|
||||
HotbarItemRenderEvent.Companion.publish(new HotbarItemRenderEvent(stack, context, x, y, tickCounter));
|
||||
}
|
||||
|
||||
@Inject(method = "renderStatusEffectOverlay", at = @At("HEAD"), cancellable = true)
|
||||
public void hideStatusEffects(CallbackInfo ci) {
|
||||
if (Fixes.TConfig.INSTANCE.getHidePotionEffectsHud()) ci.cancel();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ object Fixes : FirmamentFeature {
|
||||
val autoSprintHud by position("auto-sprint-hud", 80, 10) { Point(0.0, 1.0) }
|
||||
val peekChat by keyBindingWithDefaultUnbound("peek-chat")
|
||||
val hidePotionEffects by toggle("hide-mob-effects") { false }
|
||||
val hidePotionEffectsHud by toggle("hide-potion-effects-hud") { false }
|
||||
val noHurtCam by toggle("disable-hurt-cam") { false }
|
||||
val hideSlotHighlights by toggle("hide-slot-highlights") { false }
|
||||
val hideRecipeBook by toggle("hide-recipe-book") { false }
|
||||
|
||||
Reference in New Issue
Block a user