From 4600bca2d018dcf7031e88a506e06dda284cd4da Mon Sep 17 00:00:00 2001 From: Caedis Date: Fri, 8 Mar 2024 10:26:34 -0600 Subject: [PATCH] Mixin to override FOV multiplier instead of using the forge event (#361) * Mixin to speed check instead of using fov event * scratch that, override return value entirely * Revert "scratch that, override return value entirely" This reverts commit 20a379d766dc6764a852fdf6cbb2d5413c7b4b88. * Revert "Mixin to speed check instead of using fov event" This reverts commit 22db36d677056ac7a955520d13bcc0311730e971. * Change to lowest priority event so it is ran last (hopefully) --- .../java/com/gtnewhorizons/angelica/proxy/ClientProxy.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gtnewhorizons/angelica/proxy/ClientProxy.java b/src/main/java/com/gtnewhorizons/angelica/proxy/ClientProxy.java index 903afa94e..fafe40945 100644 --- a/src/main/java/com/gtnewhorizons/angelica/proxy/ClientProxy.java +++ b/src/main/java/com/gtnewhorizons/angelica/proxy/ClientProxy.java @@ -276,7 +276,8 @@ public class ClientProxy extends CommonProxy { } } - @SubscribeEvent + // This is a bit of a hack to prevent the FOV from being modified by other mods + @SubscribeEvent(priority = EventPriority.LOWEST) public void onFOVModifierUpdate(FOVUpdateEvent event) { if (!(boolean)Settings.DYNAMIC_FOV.option.getStore()){ event.newfov = 1.0F;