Skip to content

Commit 7c579b0

Browse files
committed
Fix mixin conflict with Meteor (getFov)
1 parent 2c8835a commit 7c579b0

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/main/java/net/ccbluex/liquidbounce/injection/mixins/minecraft/render/MixinGameRenderer.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -256,21 +256,21 @@ private void hookRestoreLightMap(RenderTickCounter tickCounter, CallbackInfo ci)
256256
((LightmapTextureManagerAddition) lightmapTextureManager).liquid_bounce$restoreLightMap();
257257
}
258258

259-
@ModifyExpressionValue(method = "getFov", at = @At(value = "INVOKE", target = "Ljava/lang/Integer;intValue()I", remap = false))
260-
private int hookGetFov(int original) {
261-
int result;
262-
263-
if (ModuleZoom.INSTANCE.getEnabled()) {
264-
return ModuleZoom.INSTANCE.getFov(true, 0);
265-
} else {
266-
result = ModuleZoom.INSTANCE.getFov(false, original);
267-
}
268-
269-
if (ModuleNoFov.INSTANCE.getEnabled() && result == original) {
270-
return ModuleNoFov.INSTANCE.getFov(result);
271-
}
272-
273-
return result;
274-
}
259+
// @ModifyExpressionValue(method = "getFov", at = @At(value = "INVOKE", target = "Ljava/lang/Integer;intValue()I", remap = false))
260+
// private int hookGetFov(int original) {
261+
// int result;
262+
//
263+
// if (ModuleZoom.INSTANCE.getEnabled()) {
264+
// return ModuleZoom.INSTANCE.getFov(true, 0);
265+
// } else {
266+
// result = ModuleZoom.INSTANCE.getFov(false, original);
267+
// }
268+
//
269+
// if (ModuleNoFov.INSTANCE.getEnabled() && result == original) {
270+
// return ModuleNoFov.INSTANCE.getFov(result);
271+
// }
272+
//
273+
// return result;
274+
// }
275275

276276
}

0 commit comments

Comments
 (0)