Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
Optimize Where Is It
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekiplay committed Apr 16, 2024
1 parent 9a072a6 commit 13285cf
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@

@Mixin(Rendering.class)
public class RenderingMixin {
@Unique
private static WhereIsIt whereIsIt;
@Inject(method = "renderLabel", at = @At("HEAD"), cancellable = true)
private static void renderLabel(Vec3d pos, Text name, MatrixStack pose, Camera camera, VertexConsumerProvider consumers, CallbackInfo ci) {
WhereIsIt whereIsIt = Modules.get().get(WhereIsIt.class);
if (whereIsIt == null) {
whereIsIt = Modules.get().get(WhereIsIt.class);
}
if (whereIsIt != null && whereIsIt.isActive()) {
pose.push();

Expand Down

0 comments on commit 13285cf

Please sign in to comment.