Skip to content

Commit 5e3a469

Browse files
Fix blinking cursor (#314)
1 parent ceb29d5 commit 5e3a469

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/main/java/com/lambda/mixin/render/GameRendererMixin.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ private void onGuiRenderComplete(RenderTickCounter tickCounter, boolean tick, Ca
9696

9797
@WrapOperation(method = "render", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/DrawContext;applyCursorTo(Lnet/minecraft/client/util/Window;)V"))
9898
private void applyCursorOverride(DrawContext context, Window window, Operation<Void> original) {
99-
original.call(context, window);
100-
10199
if (Lambda.getMc().currentScreen instanceof CursorOverrideProvider provider) {
102100
int mouseX = (int) Lambda.getMc().mouse.getScaledX(window);
103101
int mouseY = (int) Lambda.getMc().mouse.getScaledY(window);
@@ -108,7 +106,7 @@ private void applyCursorOverride(DrawContext context, Window window, Operation<V
108106
return;
109107
}
110108
}
111-
Cursor.DEFAULT.applyTo(window);
109+
original.call(context, window);
112110
}
113111

114112
@Inject(method = "shouldRenderBlockOutline()Z", at = @At("HEAD"), cancellable = true)

0 commit comments

Comments
 (0)