Skip to content

Commit

Permalink
run code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fayer3 committed Oct 12, 2023
1 parent 5e7c425 commit da95f67
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void init() {
for (int j = 0; j < astring.length; ++j) {
i = j > 5 ? 1 : 0;
String s = astring[j];
this.addRenderableWidget(new Button(this.width / 2 - 125 + 127 * i, 36 + (j - 6 * i) * 24, 125, 20, new TranslatableComponent(s.toString()), (p) ->
this.addRenderableWidget(new Button(this.width / 2 - 125 + 127 * i, 36 + (j - 6 * i) * 24, 125, 20, new TranslatableComponent(s), (p) ->
{
this.minecraft.setScreen(null);
this.minecraft.player.chat(p.getMessage().getString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ public void render(PoseStack poseStack) {
// Build all the text
for (Tuple<String, Vector3f> label : labels) {
poseStack.pushPose();
poseStack.translate((label.getB()).x, (label.getB()).y, (double) (label.getB()).z);
poseStack.translate((label.getB()).x, (label.getB()).y, (label.getB()).z);
poseStack.scale(textScale, textScale, 1.0F);
font.drawInBatch(label.getA(), 0.0F, 0.0F, 0xFFFFFFFF, false, poseStack.last().pose(), multibuffersource$buffersource, false, 0, 15728880, font.isBidirectional());
poseStack.popPose();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public abstract class EntityRenderDispatcherVRMixin implements ResourceManagerRe
q.mul(Vector3f.YP.rotationDegrees((float) (-Math.toDegrees(Math.atan2(-vec31.x, vec31.z)))));
q.mul(Vector3f.XP.rotationDegrees((float) (-Math.toDegrees(Math.asin(vec31.y / vec31.length())))));
cir.setReturnValue(q);
return;
}
}
}
Expand Down

0 comments on commit da95f67

Please sign in to comment.