From afe0f6446274a7c77db6a8b9ba009352d16007c7 Mon Sep 17 00:00:00 2001 From: Saturn5Vfive Date: Fri, 22 Apr 2022 03:29:39 -0500 Subject: [PATCH 1/3] fix bug --- src/main/java/net/shadow/client/ShadowMain.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/shadow/client/ShadowMain.java b/src/main/java/net/shadow/client/ShadowMain.java index 6d58c3e..52d0d03 100644 --- a/src/main/java/net/shadow/client/ShadowMain.java +++ b/src/main/java/net/shadow/client/ShadowMain.java @@ -184,7 +184,7 @@ public class ShadowMain implements ModInitializer { CommandRegistry.init(); log(Level.INFO, "Sending post window init"); Events.fireEvent(EventType.POST_INIT, new PostInitEvent()); - for (Module module : ModuleRegistry.getModules()) { + for (Module module : new ArrayList<>(ModuleRegistry.getModules())) { module.postInit(); } } From 7c755b47646026d09107b7b5f45b43a099746318 Mon Sep 17 00:00:00 2001 From: Saturn5Vfive Date: Fri, 22 Apr 2022 03:37:11 -0500 Subject: [PATCH 2/3] make compatable with metor --- src/main/java/net/shadow/client/mixin/GameRendererMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/shadow/client/mixin/GameRendererMixin.java b/src/main/java/net/shadow/client/mixin/GameRendererMixin.java index 88a51b9..6a5808b 100644 --- a/src/main/java/net/shadow/client/mixin/GameRendererMixin.java +++ b/src/main/java/net/shadow/client/mixin/GameRendererMixin.java @@ -90,7 +90,7 @@ public class GameRendererMixin { } } - @Redirect(at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/Entity;raycast(DFZ)Lnet/minecraft/util/hit/HitResult;"), method = "updateTargetedEntity") + @Redirect(at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/Entity;raycast(DFZ)Lnet/minecraft/util/hit/HitResult;"), method = "updateTargetedEntity", require=0) HitResult replaceFreelookHitResult(Entity instance, double maxDistance, float tickDelta, boolean includeFluids) { if (ModuleRegistry.getByClass(FreeLook.class).isEnabled()) { Vec3d vec3d = instance.getCameraPosVec(tickDelta); From 2cf9e285ce68d9bf539bee2cf590ba422272740b Mon Sep 17 00:00:00 2001 From: Saturn5Vfive Date: Fri, 22 Apr 2022 03:44:25 -0500 Subject: [PATCH 3/3] fuck you bitch --- .../net/shadow/client/feature/module/impl/misc/DiscordRPC.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/shadow/client/feature/module/impl/misc/DiscordRPC.java b/src/main/java/net/shadow/client/feature/module/impl/misc/DiscordRPC.java index 60d0972..89ac9bc 100644 --- a/src/main/java/net/shadow/client/feature/module/impl/misc/DiscordRPC.java +++ b/src/main/java/net/shadow/client/feature/module/impl/misc/DiscordRPC.java @@ -74,7 +74,7 @@ public class DiscordRPC extends Module { rp.setDetails(details.getValue()); rp.setState(state.getValue()); rp.setLargeImage("icon", "discord.gg/moles"); - rp.setSmallImage("grass", "0x150 the 2nd#8918, saturn5Vfive#6767"); + rp.setSmallImage("icon", "0x150 the 2nd#8918, saturn5Vfive#6767"); rp.setStart(startTime); DiscordIPC.setActivity(rp); }