From 9acc9b988bf632d1ca7db7433ed2993e7c17b916 Mon Sep 17 00:00:00 2001 From: IUDevman <58370012+IUDevman@users.noreply.github.com> Date: Sat, 18 Nov 2023 22:21:20 -0600 Subject: [PATCH 1/8] Added NoFog --- .../java/net/wurstclient/hack/HackList.java | 1 + .../java/net/wurstclient/hacks/NoFogHack.java | 21 +++++++++++++++++++ .../mixin/BackgroundRendererMixin.java | 11 ++++++++++ .../resources/assets/wurst/lang/en_us.json | 1 + 4 files changed, 34 insertions(+) create mode 100644 src/main/java/net/wurstclient/hacks/NoFogHack.java diff --git a/src/main/java/net/wurstclient/hack/HackList.java b/src/main/java/net/wurstclient/hack/HackList.java index 6298f3dcc8..5ae5c2e756 100644 --- a/src/main/java/net/wurstclient/hack/HackList.java +++ b/src/main/java/net/wurstclient/hack/HackList.java @@ -134,6 +134,7 @@ public final class HackList implements UpdateListener public final NoClipHack noClipHack = new NoClipHack(); public final NoFallHack noFallHack = new NoFallHack(); public final NoFireOverlayHack noFireOverlayHack = new NoFireOverlayHack(); + public final NoFogHack noFogHack = new NoFogHack(); public final NoHurtcamHack noHurtcamHack = new NoHurtcamHack(); public final NoLevitationHack noLevitationHack = new NoLevitationHack(); public final NoOverlayHack noOverlayHack = new NoOverlayHack(); diff --git a/src/main/java/net/wurstclient/hacks/NoFogHack.java b/src/main/java/net/wurstclient/hacks/NoFogHack.java new file mode 100644 index 0000000000..1353ba0f59 --- /dev/null +++ b/src/main/java/net/wurstclient/hacks/NoFogHack.java @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2014-2023 Wurst-Imperium and contributors. + * + * This source code is subject to the terms of the GNU General Public + * License, version 3. If a copy of the GPL was not distributed with this + * file, You can obtain one at: https://www.gnu.org/licenses/gpl-3.0.txt + */ +package net.wurstclient.hacks; + +import net.wurstclient.Category; +import net.wurstclient.hack.Hack; + +public final class NoFogHack extends Hack +{ + + public NoFogHack() + { + super("NoFog"); + setCategory(Category.RENDER); + } +} diff --git a/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java b/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java index 62e03146b2..abd6975647 100644 --- a/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java +++ b/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java @@ -7,9 +7,11 @@ */ package net.wurstclient.mixin; +import net.minecraft.client.render.Camera; 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 org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; import net.minecraft.client.render.BackgroundRenderer; @@ -20,6 +22,15 @@ @Mixin(BackgroundRenderer.class) public class BackgroundRendererMixin { + @Inject(at = @At("HEAD"), + method = "applyFog", + cancellable = true) + private static void onApplyFog(Camera camera, BackgroundRenderer.FogType fogType, float viewDistance, boolean thickFog, float tickDelta, CallbackInfo ci) + { + if (WurstClient.INSTANCE.getHax().noFogHack.isEnabled()) + ci.cancel(); + } + @Inject(at = @At("HEAD"), method = "getFogModifier(Lnet/minecraft/entity/Entity;F)Lnet/minecraft/client/render/BackgroundRenderer$StatusEffectFogModifier;", cancellable = true) diff --git a/src/main/resources/assets/wurst/lang/en_us.json b/src/main/resources/assets/wurst/lang/en_us.json index 08bcf10c7a..d56bcb1578 100644 --- a/src/main/resources/assets/wurst/lang/en_us.json +++ b/src/main/resources/assets/wurst/lang/en_us.json @@ -115,6 +115,7 @@ "description.wurst.hack.nocomcrash": "Lags and crashes servers using the Nocom exploit.\nDoes not work on Paper servers. Tested working on Vanilla, Spigot, and Fabric. Can be disabled by some AntiCheats.", "description.wurst.hack.nofall": "Protects you from fall damage.", "description.wurst.hack.nofireoverlay": "Blocks the overlay when you are on fire.\n\n§c§lWARNING:§r This can cause you to burn to death without noticing.", + "description.wurst.hack.nofog": "Removes fog from the world.", "description.wurst.hack.nohurtcam": "Disables the shaking effect when you get hurt.", "description.wurst.hack.nolevitation": "Disables the levitation effect when you get hit by a Shulker.\n\n§c§lWARNING:§r You will fall if you activate this while the levitation effect is already active!", "description.wurst.hack.nooverlay": "Blocks the overlays of water and lava.", From 780d7e227ee0e9ad8ee6265c0d6c9d993c0dd370 Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Tue, 28 Nov 2023 16:32:54 +0100 Subject: [PATCH 2/8] Clean up --- src/main/java/net/wurstclient/hacks/NoFogHack.java | 13 +++++++------ .../wurstclient/mixin/BackgroundRendererMixin.java | 12 +++++++----- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/main/java/net/wurstclient/hacks/NoFogHack.java b/src/main/java/net/wurstclient/hacks/NoFogHack.java index 1353ba0f59..d04d59c298 100644 --- a/src/main/java/net/wurstclient/hacks/NoFogHack.java +++ b/src/main/java/net/wurstclient/hacks/NoFogHack.java @@ -12,10 +12,11 @@ public final class NoFogHack extends Hack { - - public NoFogHack() - { - super("NoFog"); - setCategory(Category.RENDER); - } + public NoFogHack() + { + super("NoFog"); + setCategory(Category.RENDER); + } + + // See BackgroundRendererMixin } diff --git a/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java b/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java index abd6975647..c96b7ca7f3 100644 --- a/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java +++ b/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java @@ -7,7 +7,6 @@ */ package net.wurstclient.mixin; -import net.minecraft.client.render.Camera; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; @@ -16,6 +15,7 @@ import net.minecraft.client.render.BackgroundRenderer; import net.minecraft.client.render.BackgroundRenderer.StatusEffectFogModifier; +import net.minecraft.client.render.Camera; import net.minecraft.entity.Entity; import net.wurstclient.WurstClient; @@ -23,14 +23,16 @@ public class BackgroundRendererMixin { @Inject(at = @At("HEAD"), - method = "applyFog", + method = "applyFog(Lnet/minecraft/client/render/Camera;Lnet/minecraft/client/render/BackgroundRenderer$FogType;FZF)V", cancellable = true) - private static void onApplyFog(Camera camera, BackgroundRenderer.FogType fogType, float viewDistance, boolean thickFog, float tickDelta, CallbackInfo ci) + private static void onApplyFog(Camera camera, + BackgroundRenderer.FogType fogType, float viewDistance, + boolean thickFog, float tickDelta, CallbackInfo ci) { - if (WurstClient.INSTANCE.getHax().noFogHack.isEnabled()) + if(WurstClient.INSTANCE.getHax().noFogHack.isEnabled()) ci.cancel(); } - + @Inject(at = @At("HEAD"), method = "getFogModifier(Lnet/minecraft/entity/Entity;F)Lnet/minecraft/client/render/BackgroundRenderer$StatusEffectFogModifier;", cancellable = true) From 1accdfbf247137f6e070780c5f64f05f50070f73 Mon Sep 17 00:00:00 2001 From: IUDevman <58370012+IUDevman@users.noreply.github.com> Date: Wed, 29 Nov 2023 00:26:10 -0600 Subject: [PATCH 3/8] Made NoFog only cancel distance fog Still working on the skybox --- .../mixin/BackgroundRendererMixin.java | 37 ++++++++++++++----- .../resources/assets/wurst/lang/en_us.json | 2 +- 2 files changed, 29 insertions(+), 10 deletions(-) diff --git a/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java b/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java index c96b7ca7f3..cc67bfbcb1 100644 --- a/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java +++ b/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java @@ -7,7 +7,11 @@ */ package net.wurstclient.mixin; +import net.minecraft.client.render.Camera; +import net.minecraft.client.render.CameraSubmersionType; +import org.jetbrains.annotations.Nullable; 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; @@ -15,24 +19,39 @@ import net.minecraft.client.render.BackgroundRenderer; import net.minecraft.client.render.BackgroundRenderer.StatusEffectFogModifier; -import net.minecraft.client.render.Camera; import net.minecraft.entity.Entity; import net.wurstclient.WurstClient; @Mixin(BackgroundRenderer.class) -public class BackgroundRendererMixin +public abstract class BackgroundRendererMixin { + + @Shadow + @Nullable + protected static StatusEffectFogModifier getFogModifier(Entity entity, float tickDelta) + { + return null; + } + @Inject(at = @At("HEAD"), - method = "applyFog(Lnet/minecraft/client/render/Camera;Lnet/minecraft/client/render/BackgroundRenderer$FogType;FZF)V", + method = "applyFog", cancellable = true) - private static void onApplyFog(Camera camera, - BackgroundRenderer.FogType fogType, float viewDistance, - boolean thickFog, float tickDelta, CallbackInfo ci) + private static void onApplyFog(Camera camera, BackgroundRenderer.FogType fogType, float viewDistance, boolean thickFog, float tickDelta, CallbackInfo ci) { - if(WurstClient.INSTANCE.getHax().noFogHack.isEnabled()) - ci.cancel(); + if (WurstClient.INSTANCE.getHax().noFogHack.isEnabled()) + { + CameraSubmersionType cameraSubmersionType = camera.getSubmersionType(); + + Entity entity = camera.getFocusedEntity(); + BackgroundRenderer.StatusEffectFogModifier statusEffectFogModifier = getFogModifier(entity, tickDelta); + + if (cameraSubmersionType == CameraSubmersionType.NONE && statusEffectFogModifier == null) + { + ci.cancel(); + } + } } - + @Inject(at = @At("HEAD"), method = "getFogModifier(Lnet/minecraft/entity/Entity;F)Lnet/minecraft/client/render/BackgroundRenderer$StatusEffectFogModifier;", cancellable = true) diff --git a/src/main/resources/assets/wurst/lang/en_us.json b/src/main/resources/assets/wurst/lang/en_us.json index d56bcb1578..4792804fc1 100644 --- a/src/main/resources/assets/wurst/lang/en_us.json +++ b/src/main/resources/assets/wurst/lang/en_us.json @@ -115,7 +115,7 @@ "description.wurst.hack.nocomcrash": "Lags and crashes servers using the Nocom exploit.\nDoes not work on Paper servers. Tested working on Vanilla, Spigot, and Fabric. Can be disabled by some AntiCheats.", "description.wurst.hack.nofall": "Protects you from fall damage.", "description.wurst.hack.nofireoverlay": "Blocks the overlay when you are on fire.\n\n§c§lWARNING:§r This can cause you to burn to death without noticing.", - "description.wurst.hack.nofog": "Removes fog from the world.", + "description.wurst.hack.nofog": "Removes distance fog from the world.", "description.wurst.hack.nohurtcam": "Disables the shaking effect when you get hurt.", "description.wurst.hack.nolevitation": "Disables the levitation effect when you get hit by a Shulker.\n\n§c§lWARNING:§r You will fall if you activate this while the levitation effect is already active!", "description.wurst.hack.nooverlay": "Blocks the overlays of water and lava.", From fb109f1623bb88e259a93029391cdaf9a400c20b Mon Sep 17 00:00:00 2001 From: IUDevman <58370012+IUDevman@users.noreply.github.com> Date: Wed, 29 Nov 2023 09:32:26 -0600 Subject: [PATCH 4/8] FINALLY fixed the weird skybox issue. --- .../java/net/wurstclient/mixin/BackgroundRendererMixin.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java b/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java index cc67bfbcb1..f8707e40bb 100644 --- a/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java +++ b/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java @@ -7,6 +7,7 @@ */ package net.wurstclient.mixin; +import com.mojang.blaze3d.systems.RenderSystem; import net.minecraft.client.render.Camera; import net.minecraft.client.render.CameraSubmersionType; import org.jetbrains.annotations.Nullable; @@ -47,7 +48,8 @@ private static void onApplyFog(Camera camera, BackgroundRenderer.FogType fogType if (cameraSubmersionType == CameraSubmersionType.NONE && statusEffectFogModifier == null) { - ci.cancel(); + RenderSystem.setShaderFogColor(0, 0, 0, 0); + return; } } } From 660d9f5e9d61b13b5f0686b021eb95d916248dcf Mon Sep 17 00:00:00 2001 From: IUDevman <58370012+IUDevman@users.noreply.github.com> Date: Wed, 29 Nov 2023 09:50:46 -0600 Subject: [PATCH 5/8] Update BackgroundRendererMixin.java --- .../java/net/wurstclient/mixin/BackgroundRendererMixin.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java b/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java index f8707e40bb..5699b7303d 100644 --- a/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java +++ b/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java @@ -35,8 +35,7 @@ protected static StatusEffectFogModifier getFogModifier(Entity entity, float tic } @Inject(at = @At("HEAD"), - method = "applyFog", - cancellable = true) + method = "applyFog") private static void onApplyFog(Camera camera, BackgroundRenderer.FogType fogType, float viewDistance, boolean thickFog, float tickDelta, CallbackInfo ci) { if (WurstClient.INSTANCE.getHax().noFogHack.isEnabled()) @@ -49,7 +48,6 @@ private static void onApplyFog(Camera camera, BackgroundRenderer.FogType fogType if (cameraSubmersionType == CameraSubmersionType.NONE && statusEffectFogModifier == null) { RenderSystem.setShaderFogColor(0, 0, 0, 0); - return; } } } From 61ef0da1c7d8a3a1c31623d1be465d3d412c3e2d Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Mon, 18 Dec 2023 15:27:24 +0100 Subject: [PATCH 6/8] Fix line endings --- .../mixin/BackgroundRendererMixin.java | 134 +++++++++--------- 1 file changed, 67 insertions(+), 67 deletions(-) diff --git a/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java b/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java index 8a93bc28df..662b0276c2 100644 --- a/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java +++ b/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java @@ -1,67 +1,67 @@ -/* - * Copyright (c) 2014-2023 Wurst-Imperium and contributors. - * - * This source code is subject to the terms of the GNU General Public - * License, version 3. If a copy of the GPL was not distributed with this - * file, You can obtain one at: https://www.gnu.org/licenses/gpl-3.0.txt - */ -package net.wurstclient.mixin; - -import org.jetbrains.annotations.Nullable; -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; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; - -import com.mojang.blaze3d.systems.RenderSystem; - -import net.minecraft.client.render.BackgroundRenderer; -import net.minecraft.client.render.BackgroundRenderer.StatusEffectFogModifier; -import net.minecraft.client.render.Camera; -import net.minecraft.client.render.CameraSubmersionType; -import net.minecraft.entity.Entity; -import net.wurstclient.WurstClient; - -@Mixin(BackgroundRenderer.class) -public abstract class BackgroundRendererMixin -{ - @Shadow - @Nullable - protected static StatusEffectFogModifier getFogModifier(Entity entity, - float tickDelta) - { - return null; - } - - @Inject(at = @At("HEAD"), method = "applyFog") - private static void onApplyFog(Camera camera, - BackgroundRenderer.FogType fogType, float viewDistance, - boolean thickFog, float tickDelta, CallbackInfo ci) - { - if(WurstClient.INSTANCE.getHax().noFogHack.isEnabled()) - { - CameraSubmersionType cameraSubmersionType = - camera.getSubmersionType(); - - Entity entity = camera.getFocusedEntity(); - BackgroundRenderer.StatusEffectFogModifier statusEffectFogModifier = - getFogModifier(entity, tickDelta); - - if(cameraSubmersionType == CameraSubmersionType.NONE - && statusEffectFogModifier == null) - RenderSystem.setShaderFogColor(0, 0, 0, 0); - } - } - - @Inject(at = @At("HEAD"), - method = "getFogModifier(Lnet/minecraft/entity/Entity;F)Lnet/minecraft/client/render/BackgroundRenderer$StatusEffectFogModifier;", - cancellable = true) - private static void onGetFogModifier(Entity entity, float tickDelta, - CallbackInfoReturnable ci) - { - if(WurstClient.INSTANCE.getHax().antiBlindHack.isEnabled()) - ci.setReturnValue(null); - } -} +/* + * Copyright (c) 2014-2023 Wurst-Imperium and contributors. + * + * This source code is subject to the terms of the GNU General Public + * License, version 3. If a copy of the GPL was not distributed with this + * file, You can obtain one at: https://www.gnu.org/licenses/gpl-3.0.txt + */ +package net.wurstclient.mixin; + +import org.jetbrains.annotations.Nullable; +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; +import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; + +import com.mojang.blaze3d.systems.RenderSystem; + +import net.minecraft.client.render.BackgroundRenderer; +import net.minecraft.client.render.BackgroundRenderer.StatusEffectFogModifier; +import net.minecraft.client.render.Camera; +import net.minecraft.client.render.CameraSubmersionType; +import net.minecraft.entity.Entity; +import net.wurstclient.WurstClient; + +@Mixin(BackgroundRenderer.class) +public abstract class BackgroundRendererMixin +{ + @Shadow + @Nullable + protected static StatusEffectFogModifier getFogModifier(Entity entity, + float tickDelta) + { + return null; + } + + @Inject(at = @At("HEAD"), method = "applyFog") + private static void onApplyFog(Camera camera, + BackgroundRenderer.FogType fogType, float viewDistance, + boolean thickFog, float tickDelta, CallbackInfo ci) + { + if(WurstClient.INSTANCE.getHax().noFogHack.isEnabled()) + { + CameraSubmersionType cameraSubmersionType = + camera.getSubmersionType(); + + Entity entity = camera.getFocusedEntity(); + BackgroundRenderer.StatusEffectFogModifier statusEffectFogModifier = + getFogModifier(entity, tickDelta); + + if(cameraSubmersionType == CameraSubmersionType.NONE + && statusEffectFogModifier == null) + RenderSystem.setShaderFogColor(0, 0, 0, 0); + } + } + + @Inject(at = @At("HEAD"), + method = "getFogModifier(Lnet/minecraft/entity/Entity;F)Lnet/minecraft/client/render/BackgroundRenderer$StatusEffectFogModifier;", + cancellable = true) + private static void onGetFogModifier(Entity entity, float tickDelta, + CallbackInfoReturnable ci) + { + if(WurstClient.INSTANCE.getHax().antiBlindHack.isEnabled()) + ci.setReturnValue(null); + } +} From 1bb7dbe6bfe36551e7fb0e21d66efce95da0cc35 Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Mon, 18 Dec 2023 16:48:40 +0100 Subject: [PATCH 7/8] Refactor BackgroundRendererMixin --- .../mixin/BackgroundRendererMixin.java | 42 ++++++++----------- src/main/resources/wurst.accesswidener | 1 + 2 files changed, 19 insertions(+), 24 deletions(-) diff --git a/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java b/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java index 662b0276c2..814c7c8e2c 100644 --- a/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java +++ b/src/main/java/net/wurstclient/mixin/BackgroundRendererMixin.java @@ -7,9 +7,7 @@ */ package net.wurstclient.mixin; -import org.jetbrains.annotations.Nullable; 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; @@ -27,32 +25,28 @@ @Mixin(BackgroundRenderer.class) public abstract class BackgroundRendererMixin { - @Shadow - @Nullable - protected static StatusEffectFogModifier getFogModifier(Entity entity, - float tickDelta) - { - return null; - } - - @Inject(at = @At("HEAD"), method = "applyFog") + /** + * Makes the distance fog 100% transparent when NoFog is enabled, + * effectively removing it. + */ + @Inject(at = @At("HEAD"), + method = "applyFog(Lnet/minecraft/client/render/Camera;Lnet/minecraft/client/render/BackgroundRenderer$FogType;FZF)V") private static void onApplyFog(Camera camera, BackgroundRenderer.FogType fogType, float viewDistance, boolean thickFog, float tickDelta, CallbackInfo ci) { - if(WurstClient.INSTANCE.getHax().noFogHack.isEnabled()) - { - CameraSubmersionType cameraSubmersionType = - camera.getSubmersionType(); - - Entity entity = camera.getFocusedEntity(); - BackgroundRenderer.StatusEffectFogModifier statusEffectFogModifier = - getFogModifier(entity, tickDelta); - - if(cameraSubmersionType == CameraSubmersionType.NONE - && statusEffectFogModifier == null) - RenderSystem.setShaderFogColor(0, 0, 0, 0); - } + if(!WurstClient.INSTANCE.getHax().noFogHack.isEnabled()) + return; + + CameraSubmersionType cameraSubmersionType = camera.getSubmersionType(); + if(cameraSubmersionType != CameraSubmersionType.NONE) + return; + + Entity entity = camera.getFocusedEntity(); + if(BackgroundRenderer.getFogModifier(entity, tickDelta) != null) + return; + + RenderSystem.setShaderFogColor(0, 0, 0, 0); } @Inject(at = @At("HEAD"), diff --git a/src/main/resources/wurst.accesswidener b/src/main/resources/wurst.accesswidener index 6961e92ae3..5017ea7222 100644 --- a/src/main/resources/wurst.accesswidener +++ b/src/main/resources/wurst.accesswidener @@ -1,6 +1,7 @@ accessWidener v1 named accessible class net/minecraft/client/render/BackgroundRenderer$StatusEffectFogModifier accessible method net/minecraft/client/MinecraftClient doItemUse ()V +accessible method net/minecraft/client/render/BackgroundRenderer getFogModifier (Lnet/minecraft/entity/Entity;F)Lnet/minecraft/client/render/BackgroundRenderer$StatusEffectFogModifier; accessible method net/minecraft/client/render/GameRenderer loadPostProcessor (Lnet/minecraft/util/Identifier;)V accessible method net/minecraft/entity/projectile/FishingBobberEntity isOpenOrWaterAround (Lnet/minecraft/util/math/BlockPos;)Z accessible field net/minecraft/client/MinecraftClient itemUseCooldown I From 6cfd831d23bcafc1909d1a4d997871a480d74d22 Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Mon, 18 Dec 2023 16:57:20 +0100 Subject: [PATCH 8/8] Add search tags to NoFog --- src/main/java/net/wurstclient/hacks/NoFogHack.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/wurstclient/hacks/NoFogHack.java b/src/main/java/net/wurstclient/hacks/NoFogHack.java index d04d59c298..fde9f5ebde 100644 --- a/src/main/java/net/wurstclient/hacks/NoFogHack.java +++ b/src/main/java/net/wurstclient/hacks/NoFogHack.java @@ -8,8 +8,10 @@ package net.wurstclient.hacks; import net.wurstclient.Category; +import net.wurstclient.SearchTags; import net.wurstclient.hack.Hack; +@SearchTags({"no fog", "AntiFog", "anti fog"}) public final class NoFogHack extends Hack { public NoFogHack()