aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorronald <inglettronald@gmail.com>2023-07-29 00:13:53 -0500
committerronald <inglettronald@gmail.com>2023-07-29 00:13:53 -0500
commitd3e13e38e22b8eecd5198c59cf6a132cc9425b33 (patch)
treee70a8fdc86d00cf22a281fcde09b856f09b45a11 /src/main/java
parent71b8238eff91de0243e641c2eeadacd61b8f0f88 (diff)
downloadDulkirMod-Fabric-d3e13e38e22b8eecd5198c59cf6a132cc9425b33.tar.gz
DulkirMod-Fabric-d3e13e38e22b8eecd5198c59cf6a132cc9425b33.tar.bz2
DulkirMod-Fabric-d3e13e38e22b8eecd5198c59cf6a132cc9425b33.zip
Lots of slayer backend and a smattering of random features (Lightning/fire culling, chat stacking improvements, aotv highlight stuff, etc)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/dulkirfabric/mixin/render/InGameOverlayRendererMixin.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main/java/com/dulkirfabric/mixin/render/InGameOverlayRendererMixin.java b/src/main/java/com/dulkirfabric/mixin/render/InGameOverlayRendererMixin.java
new file mode 100644
index 0000000..38fb623
--- /dev/null
+++ b/src/main/java/com/dulkirfabric/mixin/render/InGameOverlayRendererMixin.java
@@ -0,0 +1,20 @@
+package com.dulkirfabric.mixin.render;
+
+import com.dulkirfabric.config.DulkirConfig;
+import net.minecraft.client.MinecraftClient;
+import net.minecraft.client.gui.hud.InGameOverlayRenderer;
+import net.minecraft.client.util.math.MatrixStack;
+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;
+
+@Mixin(InGameOverlayRenderer.class)
+public class InGameOverlayRendererMixin {
+
+ @Inject(method = "renderFireOverlay", at = @At("HEAD"), cancellable = true)
+ private static void onFireOverlay(MinecraftClient client, MatrixStack matrices, CallbackInfo ci) {
+ if (DulkirConfig.ConfigVars.getConfigOptions().getHideFireOverlay())
+ ci.cancel();
+ }
+}