Skip to content

Commit 2b5d83e

Browse files
committed
fps fix
1 parent 6432ea4 commit 2b5d83e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ org.gradle.jvmargs=-Xmx2G
33
org.gradle.parallel=true
44

55
# SimpleClient
6-
simpleclient_version=0.3.0
6+
simpleclient_version=0.3.1
77
discord_game_sdk_version=v0.5.5

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
public abstract class GameRendererMixin {
1212
@Inject(at = @At(value = "RETURN"), method = "getFov", cancellable = true)
1313
public void getFov(float partialTicks, boolean changingFov, CallbackInfoReturnable<Double> cir) {
14-
if (Zoom.ACTIVE) cir.setReturnValue(cir.getReturnValue() * (1 - Zoom.ZOOM_FACTOR));
14+
if (Zoom.ACTIVE) cir.setReturnValue((double) (cir.getReturnValue() * (1 - Zoom.ZOOM_FACTOR)));
1515
}
1616
}

0 commit comments

Comments
 (0)