Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit 09f065f

Browse files
committed
Fully fixed 1.8.9 zoom
1 parent 2b5d83e commit 09f065f

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

changelog.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
## SimpleClient %version%
2-
- Added SimpleClient for 1.8.9
3-
- Internal improvements
2+
- Zoom fix for 1.8.9

simpleclient-1.8.9/src/main/java/simpleclient/mixin/feature/zoom/GameRendererMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@Mixin(GameRenderer.class)
1111
public abstract class GameRendererMixin {
1212
@Inject(at = @At(value = "RETURN"), method = "getFov", cancellable = true)
13-
public void getFov(float partialTicks, boolean changingFov, CallbackInfoReturnable<Double> cir) {
14-
if (Zoom.ACTIVE) cir.setReturnValue((double) (cir.getReturnValue() * (1 - Zoom.ZOOM_FACTOR)));
13+
public void getFov(float partialTicks, boolean changingFov, CallbackInfoReturnable<Float> cir) {
14+
if (Zoom.ACTIVE) cir.setReturnValue(cir.getReturnValue() * (1 - Zoom.ZOOM_FACTOR));
1515
}
1616
}

0 commit comments

Comments
 (0)