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 20a379d766.

* Revert "Mixin to speed check instead of using fov event"

This reverts commit 22db36d677.

* Change to lowest priority event so it is ran last (hopefully)
This commit is contained in:
Caedis authored and GitHub committed 2024-03-08 10:26:34 -06:00
1 parent fcb9536d93
commit 4600bca2d0
1 file changed
+2 -1
@@ -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;