Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
cleanup: Remove getBrightnessForRender from MixinEntity
Browse files Browse the repository at this point in the history
Signed-off-by: lv <[email protected]>
  • Loading branch information
5HT2 committed Apr 19, 2021
1 parent da70eb4 commit 92d3304
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,4 @@ public void turn(float yaw, float pitch, CallbackInfo ci) {
if (Freecam.handleTurn(casted, yaw, pitch, ci)) return;
ViewLock.handleTurn(casted, yaw, pitch, ci);
}

@Inject(method = "getBrightnessForRender", at = @At("HEAD"), cancellable = true)
public void getBrightnessForRender(CallbackInfoReturnable<Integer> cir) {
if (Xray.INSTANCE.isEnabled()) {
cir.setReturnValue(15);
}
}
}

0 comments on commit 92d3304

Please sign in to comment.